This commit is contained in:
iFargle 2023-09-23 20:24:58 +09:00
parent 528e26d8e6
commit 686e610ab2
2 changed files with 14 additions and 5 deletions

View file

@ -3,8 +3,7 @@
# This machine won't be using secureboot
../../common/modules/boot.nix
# Testing swap
../nixos-framework/disks.nix
# ./disks.nix
./disks.nix
];
nixpkgs.config.allowUnfree = true;

View file

@ -22,11 +22,11 @@
format = "vfat";
mountpoint = "/boot";
};
} # partition 1
} # partition 1 (ESP)
{
name = "LUKS";
start = "550MiB";
end = "100%";
end = "-64GiB";
content = {
type = "luks";
name = "ROOT";
@ -50,7 +50,17 @@
}; # subvolumes
}; # content.content
}; # content
} # partition 2
} # partition 2 (/ BTRFS)
{
name = "SWAP";
start = "-64GiB";
end = "100%";
content = {
type = "swap";
randomEncryption = true;
resumeDevice = true; # resume from hiberation from this device
};
} # partition 3 (SWAP)
]; # partitions
}; # content
}; # disko.devices.disk.sda