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;