diff --git a/nixos/hosts/nixos-framework/disks.nix b/nixos/hosts/nixos-framework/disks.nix index ffcc57ca..fafd163a 100644 --- a/nixos/hosts/nixos-framework/disks.nix +++ b/nixos/hosts/nixos-framework/disks.nix @@ -74,8 +74,11 @@ content = { type = "luks"; name = "SWAP"; - passwordFile = "/mnt-root/etc/swap.key"; - settings.allowDiscards = true; + keyFile = "/mnt-root/etc/swap.key"; + passwordFile + settings = { + allowDiscards = true; + }; # content content = { type = "swap"; resumeDevice = true; # Hibernation