From eaf1b9f486188ae9133ecd47d67ec05305e74e53 Mon Sep 17 00:00:00 2001 From: tdback Date: Thu, 13 Mar 2025 20:22:59 -0400 Subject: flake: simplify module imports in systems --- modules/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules/default.nix') diff --git a/modules/default.nix b/modules/default.nix index 91ab291..6bf0abf 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,9 +1,6 @@ { inputs }: let - genModules = - { type, modules }: builtins.map (module: "${inputs.self}/modules/${type}/${module}") modules; - - mkModules = moduleAttrList: builtins.concatMap (moduleAttr: genModules moduleAttr) moduleAttrList; + mkModules = modules: builtins.map (module: "${inputs.self}/modules/${module}") modules; in { mkSystem = hostname: system: nixpkgsVersion: modules: rec { -- cgit v1.2.3