Apply NixOS flakes from EC2 user data
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user