surgat: add swapfile and crypted disk

This commit is contained in:
Tim Schubert 2020-12-30 17:00:50 +01:00
parent 6454bd1eeb
commit cd27531edf
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13

View file

@ -39,5 +39,21 @@ in {
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.version = 2; boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda"; boot.loader.grub.device = "/dev/disk/by-uuid/6e37ff6b-8cec-4d07-80d5-cd28651522ae";
boot.initrd.luks.devices.crypted.device = "/dev/disk/by-uuid/a28c8dd0-1824-4dd3-862c-7e0477871937";
#boot.initrd.network.ssh = {
# enable = true;
# port = 22;
# authorizedKeys = "${keys}/dadada.pub";
# hostKeys = [
# ];
#};
swapDevices = [
{
device = "/var/swapfile";
size = 4096;
}
];
} }