2024-02-01 14:35:46 +01:00
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
2024-02-13 15:41:05 +01:00
|
|
|
nvme0n1 = {
|
2024-02-01 14:35:46 +01:00
|
|
|
type = "disk";
|
2024-02-13 15:41:05 +01:00
|
|
|
device = "/dev/disk/by-path/pci-0000:71:00.0-nvme-1";
|
2024-02-01 14:35:46 +01:00
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
size = "512M";
|
|
|
|
type = "EF00";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
mountOptions = [
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-02-13 15:41:05 +01:00
|
|
|
luks = {
|
|
|
|
size = "100%";
|
2024-02-01 14:35:46 +01:00
|
|
|
content = {
|
2024-02-13 15:41:05 +01:00
|
|
|
type = "luks";
|
|
|
|
name = "crypted";
|
2024-02-21 10:23:51 +01:00
|
|
|
extraOpenArgs = [];
|
2024-02-13 15:41:05 +01:00
|
|
|
settings = {
|
2024-02-21 10:23:51 +01:00
|
|
|
# if you want to use the key for interactive login be sure there is no trailing newline
|
|
|
|
# for example use `echo -n "password" > /tmp/secret.key`
|
2024-02-13 15:41:05 +01:00
|
|
|
#keyFile = "/tmp/secret.key";
|
2024-02-21 10:23:51 +01:00
|
|
|
allowDiscards = true;
|
2024-02-01 14:35:46 +01:00
|
|
|
};
|
2024-02-13 15:41:05 +01:00
|
|
|
#additionalKeyFiles = ["/tmp/additionalSecret.key"];
|
|
|
|
content = {
|
2024-02-21 10:23:51 +01:00
|
|
|
type = "lvm_pv";
|
|
|
|
vg = "pool";
|
2024-02-01 14:35:46 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-02-21 10:23:51 +01:00
|
|
|
lvm_vg = {
|
|
|
|
pool = {
|
|
|
|
type = "lvm_vg";
|
|
|
|
lvs = {
|
|
|
|
swap = {
|
|
|
|
size = "8G";
|
|
|
|
content = {
|
|
|
|
type = "swap";
|
|
|
|
resumeDevice = true; # resume from hiberation from this device
|
|
|
|
};
|
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%FREE";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
2024-08-28 19:30:33 +02:00
|
|
|
format = "ext4";
|
2024-02-21 10:23:51 +01:00
|
|
|
mountpoint = "/";
|
|
|
|
mountOptions = [
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-23 14:42:57 +01:00
|
|
|
nodev = {
|
|
|
|
"/home/lillian/Downloads" = {
|
2024-03-23 14:45:56 +01:00
|
|
|
fsType = "tmpfs";
|
|
|
|
mountOptions = [
|
2024-03-24 21:31:50 +01:00
|
|
|
"size=4G"
|
2024-03-23 14:45:56 +01:00
|
|
|
];
|
|
|
|
};
|
2024-03-23 14:42:57 +01:00
|
|
|
};
|
2024-02-06 12:45:33 +01:00
|
|
|
};
|
2024-02-01 14:35:46 +01:00
|
|
|
}
|