aboutsummaryrefslogtreecommitdiff
path: root/lib/nix-furnace/mkSystem.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-24 10:53:41 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-24 10:53:41 -0600
commit7a05f6634f2a8fd3340330eb6dc7d4b1890e8247 (patch)
treefbfc8653c788ba333de1fc06260b489897b967f2 /lib/nix-furnace/mkSystem.nix
parentbede17058b1fa89773eeb81d1c260a40d1cdfa93 (diff)
ssh config
Diffstat (limited to 'lib/nix-furnace/mkSystem.nix')
-rw-r--r--lib/nix-furnace/mkSystem.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/nix-furnace/mkSystem.nix b/lib/nix-furnace/mkSystem.nix
index 2766082..856655a 100644
--- a/lib/nix-furnace/mkSystem.nix
+++ b/lib/nix-furnace/mkSystem.nix
@@ -2,6 +2,8 @@ let
my-lib = import ../lib.nix;
inherit (my-lib.globimport) getSubdirs lazyImport;
+ hosts = (builtins.fromTOML (builtins.readFile ../../hosts.toml)).hosts;
+
listModules = getSubdirs ../../modules;
nixosModules = hostname:
@@ -36,7 +38,7 @@ let
username,
}:
inputs.nixpkgs.lib.nixosSystem {
- specialArgs = {inherit inputs my-lib;};
+ specialArgs = {inherit inputs my-lib hosts;};
modules = [
{networking.hostName = hostname;}
@@ -52,7 +54,7 @@ let
];
hjem = {
extraModules = hjemModules hostname;
- specialArgs = {inherit inputs my-lib;};
+ specialArgs = {inherit inputs my-lib hosts;};
users.${username} = {
enable = true;
user = username;