diff options
| author | vkcku <[email protected]> | 2026-06-01 16:36:34 +0530 |
|---|---|---|
| committer | vkcku <[email protected]> | 2026-06-01 16:36:34 +0530 |
| commit | 6ed07ef251e380dd15fc5d3351e62614f102ea5e (patch) | |
| tree | 01a8d0bf2a5737b8d83a3c7098bfbaa120225b93 /infra/hosts/indra/disk.nix | |
| parent | infra: add deploy user module (diff) | |
infra(indra): initial configuration
monorepo-revid: f03da585dab1b846571ab225c4196750254c319f
Diffstat (limited to 'infra/hosts/indra/disk.nix')
| -rw-r--r-- | infra/hosts/indra/disk.nix | 41 |
1 files changed, 41 insertions, 0 deletions
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; + }; + }; + }; + }; + }; + + }; +} |
