diff --git a/machines/atlas/default.nix b/machines/atlas/default.nix index aae82bc..c2d4f98 100644 --- a/machines/atlas/default.nix +++ b/machines/atlas/default.nix @@ -1,15 +1,18 @@ { machines.atlas = { kubernetesNodeLabels.storageType = "slow"; - facterReportPath = ./facter.json; - nixosModule.lab = { - storage.profile = "kubernetes"; - tailscale.enable = true; + nixosModule = { + facter.reportPath = ./facter.json; - k3s = { - enable = true; - serverAddr = "https://jefke.dmz:6443"; + lab = { + storage.profile = "kubernetes"; + tailscale.enable = true; + + k3s = { + enable = true; + serverAddr = "https://jefke.dmz:6443"; + }; }; }; }; diff --git a/machines/default.nix b/machines/default.nix index 5aab827..fdbae99 100644 --- a/machines/default.nix +++ b/machines/default.nix @@ -9,14 +9,6 @@ flake-utils.lib.eachDefaultSystem (system: let machineOpts = {config, ...}: { options = { - facterReportPath = lib.mkOption { - default = null; - type = with lib.types; nullOr path; - description = '' - Path to the nixos-facter report JSON for this machine. - ''; - }; - nixosModule = lib.mkOption { default = {...}: {}; type = lib.types.anything; diff --git a/machines/jefke/default.nix b/machines/jefke/default.nix index ffab64b..742e9b1 100644 --- a/machines/jefke/default.nix +++ b/machines/jefke/default.nix @@ -1,15 +1,18 @@ { machines.jefke = { kubernetesNodeLabels.storageType = "fast"; - facterReportPath = ./facter.json; - nixosModule.lab = { - storage.profile = "kubernetes"; - tailscale.enable = true; + nixosModule = { + facter.reportPath = ./facter.json; - k3s = { - enable = true; - clusterInit = true; + lab = { + storage.profile = "kubernetes"; + tailscale.enable = true; + + k3s = { + enable = true; + clusterInit = true; + }; }; }; }; diff --git a/machines/lewis/default.nix b/machines/lewis/default.nix index 2dcf470..790041f 100644 --- a/machines/lewis/default.nix +++ b/machines/lewis/default.nix @@ -4,17 +4,20 @@ storageType = "fast"; hasMedia = "true"; }; - facterReportPath = ./facter.json; - nixosModule.lab = { - storage.profile = "kubernetes"; - backups.enable = true; - data-sharing.enable = true; - tailscale.enable = true; + nixosModule = { + facter.reportPath = ./facter.json; - k3s = { - enable = true; - serverAddr = "https://jefke.dmz:6443"; + lab = { + storage.profile = "kubernetes"; + backups.enable = true; + data-sharing.enable = true; + tailscale.enable = true; + + k3s = { + enable = true; + serverAddr = "https://jefke.dmz:6443"; + }; }; }; }; diff --git a/machines/warwick/default.nix b/machines/warwick/default.nix index a9e740b..81bd94f 100644 --- a/machines/warwick/default.nix +++ b/machines/warwick/default.nix @@ -1,11 +1,11 @@ { machines.warwick = { - facterReportPath = ./facter.json; - nixosModule = {inputs, ...}: { imports = [inputs.nixos-hardware.nixosModules.raspberry-pi-4]; config = { + facter.reportPath = ./facter.json; + lab = { storage.profile = "pi"; monitoring.server.enable = true; diff --git a/modules/default.nix b/modules/default.nix index ef7de1c..fe31225 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -141,7 +141,5 @@ age.keyFile = "/root/.config/sops/age/keys.txt"; defaultSopsFile = "${self}/secrets/nixos.yaml"; }; - - facter.reportPath = machine.facterReportPath; }; }