Apply NixOS flakes from EC2 user data

This commit is contained in:
Timothy J. Aveni
2026-06-20 12:54:05 -07:00
parent 149ffd374f
commit 73015da5a3
2 changed files with 43 additions and 3 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ device mapping. Runtime deployments should consume the AMI ID directly and
should not independently choose a `/nix` snapshot.
The image is intentionally project-agnostic. It provides NixOS, ZFS, SSM,
flakes, and systemd ordering so the Nix daemon waits for `/nix`.
flakes, and systemd ordering so the Nix daemon waits for `/nix`. The final AMI
also disables the default shell-oriented `amazon-init` service and enables a
small generic service that treats EC2 user-data as `/etc/nixos/flake.nix`, then
runs `nixos-rebuild switch --flake /etc/nixos`.
## Publish