surgat: add swapfile and crypted disk
This commit is contained in:
parent
6454bd1eeb
commit
cd27531edf
1 changed files with 17 additions and 1 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue