add swap device

This commit is contained in:
Charlie Root 2024-09-20 16:11:53 +02:00
commit eb8fbe1bfc

View file

@ -1,6 +1,6 @@
{
config = {
boot.initrd.luks.devices."cryptroot".device = "/dev/disk-by-uuid/";
boot.initrd.luks.devices."cryptroot".device = "/dev/disk-by-uuid/";
fileSystems = {
"/boot" = {
device = "";
@ -28,6 +28,12 @@
fsType = "btrfs";
options = ["subvol=home" "compress=zstd" "noatime"];
};
"/swap" = {
device = "";
fsType = "btrfs";
options = ["subvol=swap" "compress=lzo" "noatime"];
};
};
swapDevices = [
{device = "";}