Don't duplicate setting

This commit is contained in:
Sandro - 2023-01-05 00:11:25 +01:00
parent 324b4aeb69
commit 3698a8baf6
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,11 @@
libS = nixos-modules.lib { inherit lib config; };
};
imports = (dir: map (file: ./. + "/${dir}/${file}") (ls dir)) "modules";
imports = (dir: map
(file: ./. + "/${dir}/${file}")
# assume that the nixos-modules repo is already imported if libS exists
(lib.remove (lib.optionalString (!args ? libs) "default.nix") (ls dir))
) "modules";
};
};
}