2023-07-27 01:02:33 +00:00
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
2024-07-19 19:17:48 +00:00
|
|
|
main = {
|
2023-07-27 01:02:33 +00:00
|
|
|
type = "disk";
|
|
|
|
device = "/dev/vdb";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
size = "512M";
|
2023-08-11 06:11:01 +00:00
|
|
|
type = "EF00";
|
2023-07-27 01:02:33 +00:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
mountOptions = [
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
luks = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "luks";
|
|
|
|
name = "crypted";
|
2023-11-10 17:34:02 +00:00
|
|
|
# disable settings.keyFile if you want to use interactive password entry
|
|
|
|
#passwordFile = "/tmp/secret.key"; # Interactive
|
2023-11-04 11:54:07 +00:00
|
|
|
settings = {
|
|
|
|
allowDiscards = true;
|
|
|
|
keyFile = "/tmp/secret.key";
|
|
|
|
};
|
2023-08-11 06:11:01 +00:00
|
|
|
additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
|
2023-07-27 01:02:33 +00:00
|
|
|
content = {
|
|
|
|
type = "btrfs";
|
|
|
|
extraArgs = [ "-f" ];
|
|
|
|
subvolumes = {
|
|
|
|
"/root" = {
|
|
|
|
mountpoint = "/";
|
|
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
mountpoint = "/home";
|
|
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
|
|
};
|
|
|
|
"/nix" = {
|
|
|
|
mountpoint = "/nix";
|
|
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
|
|
};
|
2023-09-12 21:03:16 +00:00
|
|
|
"/swap" = {
|
|
|
|
mountpoint = "/.swapvol";
|
|
|
|
swap.swapfile.size = "20M";
|
|
|
|
};
|
2023-07-27 01:02:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|