-
Look into Impermanence.
-
Configure GPG Keys automatically in
modules/home-manager/gpg.nix. -
Configure secrets using
agenix.
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ./hosts/laptop/disks.nix
sudo nixos-install --flake .#laptop
nixos-generate-config --show-hardware-config > hosts/laptop/hardware-configuration.nix