Add swap as a btrfs subvolume, which should allow hibernate
btrfs subvolume create /swap
The setting boot.kernelParams
needs an entry "resume_offset=XXXXXX"
where XXXXXX
is the number given by sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
. The swapfile has to exist first.
When asked to call nixos-install
, instead use:
nixos-install --flake github:PhDyellow/nixos-config#prime-ai-bootstrap
Boot into the installed system, as bootstrap user with password tmppwd
.
Configure agenix
Configure Secure Boot
sudo nixos-rebuild switch --flake github:PhDyellow/nixos-config#prime-ai
reboot system and log in as regular user with configured password.
This will install a base system ready for adding secrets
https://www.tweag.io/blog/2020-07-31-nixos-flakes/ https://jdisaacs.com/blog/nixos-config/