diff options
| author | KJ Tsanaktsidis <kj@kjtsanaktsidis.id.au> | 2026-01-06 21:51:52 +1100 |
|---|---|---|
| committer | KJ Tsanaktsidis <kj@kjtsanaktsidis.id.au> | 2026-01-06 21:51:52 +1100 |
| commit | 51feac4edbe6b60dab5f731a8adaf3d8d369a1bf (patch) | |
| tree | 798fe89fefa166c680fccc0e7cdcf82beb5b204e /labsrv01/disk-config.nix | |
| parent | cb35955d16f7c39ea1ccc9258ffdffa94e56a9c7 (diff) | |
Ahah, i have labsrv01
Diffstat (limited to 'labsrv01/disk-config.nix')
| -rw-r--r-- | labsrv01/disk-config.nix | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/labsrv01/disk-config.nix b/labsrv01/disk-config.nix new file mode 100644 index 0000000..b0f74c9 --- /dev/null +++ b/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" + ]; + }; + }; + }; + }; + }; + }; + }; + }; + }; +} |
