From 3095ab893b5ef115c4d3c75d7f40f8a43a344e96 Mon Sep 17 00:00:00 2001 From: vkcku Date: Mon, 1 Jun 2026 17:50:17 +0530 Subject: infra(plato): initial configuration monorepo-revid: 3268d9ef1492e6d3e6a72e73ccde0983c507f254 --- infra/hosts/plato/plato.nix | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 infra/hosts/plato/plato.nix (limited to 'infra/hosts/plato/plato.nix') diff --git a/infra/hosts/plato/plato.nix b/infra/hosts/plato/plato.nix new file mode 100644 index 0000000..e78466f --- /dev/null +++ b/infra/hosts/plato/plato.nix @@ -0,0 +1,70 @@ +{ config, ... }: +let + flakeConfig = config; +in +{ + flake.modules.nixos.plato = + { config, ... }: + { + imports = map (m: flakeConfig.flake.modules.nixos."${m}") [ + # keep-sorted start + "base" + "deploy" + # keep-sorted end + ]; + + infra = { + tailscale = { + authenticate = true; + ssh = true; + }; + + zfs.pool = "zroot"; + }; + + networking = { + hostName = "plato"; + hostId = "56d7f0f2"; + }; + + hardware.facter.reportPath = ./facter.json; + system.stateVersion = "26.11"; + + boot.loader = { + efi.canTouchEfiVariables = true; + systemd-boot = { + enable = true; + configurationLimit = 100; + editor = false; + }; + }; + + disko.devices.disk.main = { + type = "disk"; + imageSize = "100G"; + device = "/dev/disk/by-id/ata-CONSISTENT_SSD_S7_512GB_09092225J0987"; + content = { + type = "gpt"; + partitions = { + boot = { + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + zfs = { + size = "100%"; + content = { + type = "zfs"; + pool = config.infra.zfs.pool; + }; + }; + }; + }; + }; + }; +} -- cgit v1.3.1