From 3c50eaf6bed7e8fe65d8bd95df77554caa3280b9 Mon Sep 17 00:00:00 2001 From: tdback Date: Tue, 24 Dec 2024 17:08:23 -0500 Subject: shorten from 'make' to 'mk' --- modules/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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 -- cgit v1.2.3