(aurum) rework disko config

This commit is contained in:
Laureηt 2024-10-05 16:41:51 +02:00
parent 13057ecc9c
commit 71e9abc994
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk

View file

@ -1,21 +1,23 @@
{...}: { {...}: {
disko.devices = { disko.devices = {
disk = { disk = {
nvme0 = { main = {
type = "disk"; type = "disk";
device = "/dev/nvme0n1"; device = "/dev/nvme0n1";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
esp = { esp = {
size = "512M"; priority = 1;
type = "EF00"; type = "EF00";
size = "1024M";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = [ mountOptions = [
"defaults" "defaults"
"umask=0077"
]; ];
}; };
}; };
@ -24,44 +26,39 @@
content = { content = {
type = "luks"; type = "luks";
name = "crypted"; name = "crypted";
settings.allowDiscards = true; settings = {
passwordFile = "/tmp/secret.key"; allowDiscards = true;
};
content = { content = {
type = "lvm_pv"; type = "btrfs";
vg = "pool"; extraArgs = ["-f"];
subvolumes = {
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
"/persist" = {
mountOptions = ["compress=zstd"];
mountpoint = "/persist";
};
};
}; };
}; };
}; };
}; };
}; };
}; };
}; nodev = {
lvm_vg = { "/" = {
pool = { fsType = "tmpfs";
type = "lvm_vg"; mountOptions = [
lvs = { "defaults"
root = { "mode=755"
size = "100M"; "size=8G"
content = { ];
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
};
};
home = {
size = "10M";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/home";
};
};
raw = {
size = "10M";
};
}; };
}; };
}; };