feat(akhaten): enable impermanence

This commit is contained in:
Luj 2024-08-21 23:27:25 +02:00
parent a8a2c80d52
commit 0a0f3ad1eb
Signed by: luj
GPG key ID: 6FC74C847011FD83
3 changed files with 73 additions and 6 deletions

View file

@ -9,7 +9,7 @@
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
type = "EF02";
};
ESP = {
size = "512M";
@ -20,17 +20,60 @@
mountpoint = "/boot";
};
};
swap = {
size = "16G";
content = {
type = "swap";
discardPolicy = "both";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
type = "lvm_pv";
vg = "mainpool";
};
};
};
};
};
};
lvm_vg = {
mainpool = {
type = "lvm_vg";
lvs = {
root = {
size = "100G";
pool = "mainpool";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [ "defaults" ];
};
};
persistent = {
size = "100G";
pool = "mainpool";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/persistent";
mountOptions = [ "defaults" ];
};
};
store = {
size = "600G";
pool = "mainpool";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/nix";
};
};
};
};
};
};
}