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