encrypt swap device

This commit is contained in:
Daniel Frank 2019-06-13 14:05:55 +02:00
parent 8856b812bc
commit e8a507e703
Signed by: tokudan
GPG key ID: 063CCCAD04182D32

View file

@ -22,8 +22,10 @@
fsType = "ext4";
};
# encrypt the swap device. why not.
# needs the UUID of the partition, as the swap id will be lost on every boot.
swapDevices =
[ { device = "/dev/disk/by-uuid/4aa2212c-ecd3-4609-a406-021071b2df0f"; }
[ { device = "/dev/disk/by-partuuid/f1251a25-02"; randomEncryption.enable = true; }
];
nix.maxJobs = lib.mkDefault 1;