From 7ba95e86a4b9e1964ff4a0629c852596aa089b2a Mon Sep 17 00:00:00 2001 From: Pyjacpp Date: Sun, 6 Sep 2026 11:53:44 +0200 Subject: [PATCH] Fix inputs --- flake.nix | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/flake.nix b/flake.nix index 39325e3..e4af1b4 100644 --- a/flake.nix +++ b/flake.nix @@ -51,18 +51,6 @@ filePath = path + "/${name}/info.nix"; in if builtins.pathExists filePath then - # let eval = evalModules { - # specialArgs = inputs; - # modules = [ - # ./modules/crans - # { - # crans = import filePath; - # } - # # agenix.nixosModules.default - # ]; - # }; - # in - # eval.config { crans = import filePath; } @@ -86,11 +74,14 @@ mapAttrs ( name: info: nixosSystem { - specialArgs = { + specialArgs = inputs // { hosts = all_hosts; - inherit inputs; }; - modules = [ (path + "/${name}") ] ++ [ info ] ++ baseModules; + modules = [ + (path + "/${name}") + info + ] + ++ baseModules; } ) hosts; attrs_vm_info = listInfoToAttrs ./hosts/vm hosts_vm_info;