From 98e94297af73c583c9636c99772b2c1c34f98743 Mon Sep 17 00:00:00 2001 From: Kj Tsanaktsidis Date: Fri, 9 Jan 2026 11:58:31 +1100 Subject: some refactor --- labsrv01/disk-config.nix | 83 ------------------------------------------------ 1 file changed, 83 deletions(-) delete mode 100644 labsrv01/disk-config.nix (limited to 'labsrv01/disk-config.nix') diff --git a/labsrv01/disk-config.nix b/labsrv01/disk-config.nix deleted file mode 100644 index b0f74c9..0000000 --- a/labsrv01/disk-config.nix +++ /dev/null @@ -1,83 +0,0 @@ -{ - 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" - ]; - }; - }; - }; - }; - }; - }; - }; - }; - }; -} -- cgit v1.2.3