test
This commit is contained in:
parent
cbb849865f
commit
4db8bdf443
1 changed files with 9 additions and 6 deletions
|
@ -3,7 +3,10 @@
|
||||||
|
|
||||||
services.btrfs.autoScrub.enable = true;
|
services.btrfs.autoScrub.enable = true;
|
||||||
services.btrfs.autoScrub.interval = "weekly";
|
services.btrfs.autoScrub.interval = "weekly";
|
||||||
boot.initrd.systemd.enable = true;
|
boot.initrd.secrets = {
|
||||||
|
# Create /mnt/etc/secrets/initrd directory and copy keys to it
|
||||||
|
"swap.key" = "/etc/secrets/initrd/swap.key";
|
||||||
|
};
|
||||||
|
|
||||||
disko.devices.disk.nvme0 = {
|
disko.devices.disk.nvme0 = {
|
||||||
device = "/dev/nvme0n1";
|
device = "/dev/nvme0n1";
|
||||||
|
@ -75,16 +78,16 @@
|
||||||
type = "luks";
|
type = "luks";
|
||||||
name = "SWAP";
|
name = "SWAP";
|
||||||
settings = {
|
settings = {
|
||||||
keyFile = "/etc/swap.key";
|
keyFile = "/swap.key";
|
||||||
allowDiscards = true;
|
allowDiscards = true;
|
||||||
};
|
}; # content
|
||||||
content = {
|
content = {
|
||||||
type = "swap";
|
type = "swap";
|
||||||
resumeDevice = true; # Hibernation
|
resumeDevice = true; # Hibernation
|
||||||
};
|
}; # content.ontent
|
||||||
};
|
};# content
|
||||||
} # partition 3 (SWAP)
|
} # partition 3 (SWAP)
|
||||||
]; # partitions
|
]; # partitions
|
||||||
}; # content
|
}; # content
|
||||||
}; # disko.devices.disk.nvme0
|
}; # disko.devices.disk.nvme0
|
||||||
} # root
|
} # nix
|
||||||
|
|
Loading…
Reference in a new issue