86 lines
2.1 KiB
Nix
86 lines
2.1 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
sda1 = {
|
|
type = "disk";
|
|
device = "/dev/disk/by-path/pci-0000:06:00.0-ata-6";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [
|
|
"defaults"
|
|
];
|
|
};
|
|
};
|
|
luks = {
|
|
size = "100%";
|
|
content = {
|
|
type = "luks";
|
|
name = "crypted";
|
|
extraOpenArgs = [];
|
|
settings = {
|
|
# 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`
|
|
#keyFile = "/tmp/secret.key";
|
|
allowDiscards = true;
|
|
};
|
|
#additionalKeyFiles = ["/tmp/additionalSecret.key"];
|
|
content = {
|
|
type = "lvm_pv";
|
|
vg = "pool";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
lvm_vg = {
|
|
pool = {
|
|
type = "lvm_vg";
|
|
lvs = {
|
|
swap = {
|
|
size = "16G";
|
|
content = {
|
|
type = "swap";
|
|
resumeDevice = true; # resume from hiberation from this device
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%FREE";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "bcachefs";
|
|
mountpoint = "/";
|
|
mountOptions = [
|
|
"defaults"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
nodev = {
|
|
"/home/lillian/Downloads" = {
|
|
fsType = "tmpfs";
|
|
mountOptions = [
|
|
"size=2G"
|
|
];
|
|
};
|
|
"/tmp" = {
|
|
fsType = "tmpfs";
|
|
mountOptions = [
|
|
"size=4G"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|