about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJack Kelly <jack@jackkelly.name>2024-03-08 16:24:00 +1000
committerJack Kelly <jack@jackkelly.name>2024-03-08 16:24:00 +1000
commitdc158268f7bedccea096098a2fe020362e564f51 (patch)
tree10b32d0b32d9742e1c5bb147ec82f56ee824646f /nixos/modules
parentf98a3ccfa6faa5da98aa361835f005fc9a148f5d (diff)
downloadnixlib-dc158268f7bedccea096098a2fe020362e564f51.tar
nixlib-dc158268f7bedccea096098a2fe020362e564f51.tar.gz
nixlib-dc158268f7bedccea096098a2fe020362e564f51.tar.bz2
nixlib-dc158268f7bedccea096098a2fe020362e564f51.tar.lz
nixlib-dc158268f7bedccea096098a2fe020362e564f51.tar.xz
nixlib-dc158268f7bedccea096098a2fe020362e564f51.tar.zst
nixlib-dc158268f7bedccea096098a2fe020362e564f51.zip
nixos/amazon-image: Enable Amazon SSM Agent by default
Amazon-provided EC2 images do this.

See: https://docs.aws.amazon.com/systems-manager/latest/userguide/ami-preinstalled-agent.html
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/virtualisation/amazon-image.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix
index c7fe1bed5159..77730178422c 100644
--- a/nixos/modules/virtualisation/amazon-image.nix
+++ b/nixos/modules/virtualisation/amazon-image.nix
@@ -79,6 +79,10 @@ in
       serviceConfig.StandardOutput = "journal+console";
     };
 
+    # Amazon-issued AMIs include the SSM Agent by default, so we do the same.
+    # https://docs.aws.amazon.com/systems-manager/latest/userguide/ami-preinstalled-agent.html
+    services.amazon-ssm-agent.enable = true;
+
     # Allow root logins only using the SSH key that the user specified
     # at instance creation time.
     services.openssh.enable = true;