diff options
| author | Kj Tsanaktsidis <kjtsanaktsidis@groq.com> | 2026-01-09 11:58:31 +1100 |
|---|---|---|
| committer | Kj Tsanaktsidis <kjtsanaktsidis@groq.com> | 2026-01-09 11:58:31 +1100 |
| commit | 98e94297af73c583c9636c99772b2c1c34f98743 (patch) | |
| tree | 1ac244e55b6d544d556b2327308d07708350e824 /machines/labsrv01/disk-config.nix | |
| parent | f5686b8e377ce3ecbf617783b4f2398423cb19fd (diff) | |
some refactor
Diffstat (limited to 'machines/labsrv01/disk-config.nix')
| -rw-r--r-- | machines/labsrv01/disk-config.nix | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/machines/labsrv01/disk-config.nix b/machines/labsrv01/disk-config.nix new file mode 100644 index 0000000..b0f74c9 --- /dev/null +++ b/machines/labsrv01/disk-config.nix @@ -0,0 +1,83 @@ +{ + config, + ... +}: +{ + disko.devices = { + disk.nvme0n1 = { + device = "/dev/nvme0n1"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + esp = { + name = "ESP"; + start = "1MiB"; + size = "1023M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + luks = { + name = "cryptroot"; + type = "8300"; + size = "100%"; + content = { + type = "luks"; + name = "crypted"; + passwordFile = config.sops.secrets.luks_passphrase.path; + settings = { + allowDiscards = true; + bypassWorkqueues = true; + }; + content = { + type = "btrfs"; + subvolumes = { + "@" = { }; + "@/root" = { + mountpoint = "/"; + mountOptions = [ + "compress=zstd" + "noatime" + ]; + }; + "@/home" = { + mountpoint = "/home"; + mountOptions = [ + "compress=zstd" + "noatime" + ]; + }; + "@/var" = { + mountpoint = "/var"; + mountOptions = [ + "compress=zstd" + "noatime" + ]; + }; + "@/nix" = { + mountpoint = "/nix"; + mountOptions = [ + "compress=zstd" + "noatime" + ]; + }; + "@/swap" = { + mountpoint = "/swap"; + mountOptions = [ + "compress=zstd" + "noatime" + ]; + }; + }; + }; + }; + }; + }; + }; + }; + }; +} |
