diff options
author | tdback <tyler@tdback.net> | 2024-12-24 17:08:23 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2024-12-24 17:08:23 -0500 |
commit | 3c50eaf6bed7e8fe65d8bd95df77554caa3280b9 (patch) | |
tree | cf3a25b00f83b5683ce9392f96d38643f2beed75 /modules | |
parent | b10b5a159161b4e2eb715193693b34849983f092 (diff) |
shorten from 'make' to 'mk'
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 |