From 6ed07ef251e380dd15fc5d3351e62614f102ea5e Mon Sep 17 00:00:00 2001 From: vkcku Date: Mon, 1 Jun 2026 16:36:34 +0530 Subject: infra(indra): initial configuration monorepo-revid: f03da585dab1b846571ab225c4196750254c319f --- infra/hosts/indra/disk.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 infra/hosts/indra/disk.nix (limited to 'infra/hosts/indra/disk.nix') diff --git a/infra/hosts/indra/disk.nix b/infra/hosts/indra/disk.nix new file mode 100644 index 0000000..5aab05b --- /dev/null +++ b/infra/hosts/indra/disk.nix @@ -0,0 +1,41 @@ +{ + flake.modules.nixos.indra = + { config, ... }: + { + infra.zfs.pool = "zroot"; + + disko.devices.disk.main = { + type = "disk"; + imageSize = "100G"; + device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0"; + content = { + type = "gpt"; + partitions = { + bios = { + size = "1M"; + type = "EF02"; + }; + + boot = { + size = "512M"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/boot"; + mountOptions = [ "noatime" ]; + }; + }; + + zfs = { + size = "100%"; + content = { + type = "zfs"; + pool = config.infra.zfs.pool; + }; + }; + }; + }; + }; + + }; +} -- cgit v1.3.1