infrastructure/hosts/aurum/system/disko.nix

67 lines
1.6 KiB
Nix
Raw Normal View History

2024-01-15 15:50:55 +00:00
{...}: {
disko.devices = {
disk = {
2024-10-05 14:41:51 +00:00
main = {
2024-01-15 15:50:55 +00:00
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
esp = {
2024-10-05 14:41:51 +00:00
priority = 1;
2024-01-15 15:50:55 +00:00
type = "EF00";
2024-10-05 14:41:51 +00:00
size = "1024M";
2024-01-15 15:50:55 +00:00
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
2024-10-05 14:41:51 +00:00
"umask=0077"
2024-01-15 15:50:55 +00:00
];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
2024-10-05 14:41:51 +00:00
settings = {
allowDiscards = true;
};
2024-01-15 15:50:55 +00:00
content = {
2024-10-05 14:41:51 +00:00
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
"/persist" = {
mountOptions = ["compress=zstd"];
mountpoint = "/persist";
};
};
2024-01-15 15:50:55 +00:00
};
};
};
};
};
};
};
nodev = {
"/" = {
fsType = "tmpfs";
mountOptions = [
"defaults"
"mode=755"
"size=8G"
];
};
};
2024-01-15 15:50:55 +00:00
};
}