diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/default.nix b/modules/default.nix index 4930139..bfa1760 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -3,14 +3,14 @@ let genModules = { type, modules }: builtins.map (module: "${inputs.self}/modules/${type}/${module}") modules; - makeModules = moduleAttrList: + mkModules = moduleAttrList: builtins.concatMap (moduleAttr: genModules moduleAttr) moduleAttrList; in { - makeSystem = hostname: nixpkgsVersion: modules: { + mkSystem = hostname: nixpkgsVersion: modules: { ${hostname} = nixpkgsVersion.lib.nixosSystem { system = "x86_64-linux"; - modules = (makeModules modules) ++ [ + modules = (mkModules modules) ++ [ "${inputs.self}/hosts/${hostname}" "${inputs.self}/modules/users" inputs.home-manager.nixosModules.home-manager |