change disk configuration to match moved systemj

This commit is contained in:
Akulij 2025-02-15 13:27:14 +00:00
parent bc8f4ff4e5
commit a2b68751b2

View File

@ -3,7 +3,7 @@
disk = { disk = {
main = { main = {
type = "disk"; type = "disk";
device = "/dev/nvme0n1"; device = "/dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0W823875P";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
@ -16,17 +16,25 @@
mountpoint = "/boot"; mountpoint = "/boot";
}; };
}; };
luks = { system = {
size = "256G";
content = {
type = "filesystem";
format = "btrfs";
mountpoint = "/";
};
};
storage = {
size = "100%"; size = "100%";
content = { content = {
type = "luks"; type = "luks";
name = "crypted"; name = "storage";
settings.allowDiscards = true; settings.allowDiscards = true;
passwordFile = "/tmp/secret.key"; passwordFile = "/tmp/secret.key";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "btrfs"; format = "btrfs";
mountpoint = "/"; mountpoint = "/storage"; # non-standard folder for unix-like, but good to avoid collisions
}; };
}; };
}; };