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