This commit is contained in:
iFargle 2024-02-05 21:20:40 +09:00
parent cbb849865f
commit 4db8bdf443

View file

@ -3,7 +3,10 @@
services.btrfs.autoScrub.enable = true;
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 = {
device = "/dev/nvme0n1";
@ -75,16 +78,16 @@
type = "luks";
name = "SWAP";
settings = {
keyFile = "/etc/swap.key";
keyFile = "/swap.key";
allowDiscards = true;
};
}; # content
content = {
type = "swap";
resumeDevice = true; # Hibernation
};
};
}; # content.ontent
};# content
} # partition 3 (SWAP)
]; # partitions
}; # content
}; # disko.devices.disk.nvme0
} # root
} # nix