Fix module import
This commit is contained in:
parent
b10523c86d
commit
68783a0583
|
@ -18,7 +18,9 @@
|
||||||
nixosModule = { config, libS, ... }@args: {
|
nixosModule = { config, libS, ... }@args: {
|
||||||
_module.args.libS = lib.mkOverride 1001 (nixos-modules.lib { inherit lib config; });
|
_module.args.libS = lib.mkOverride 1001 (nixos-modules.lib { inherit lib config; });
|
||||||
|
|
||||||
imports = (dir: map
|
imports = [
|
||||||
|
nixos-modules.nixosModules.default
|
||||||
|
] ++ (dir: map
|
||||||
(file: ./. + "/${dir}/${file}")
|
(file: ./. + "/${dir}/${file}")
|
||||||
# assume that the nixos-modules repo is already imported if libS exists
|
# assume that the nixos-modules repo is already imported if libS exists
|
||||||
(lib.remove (lib.optionalString (lib.hasAttr "libS" args) "default.nix") (ls dir))
|
(lib.remove (lib.optionalString (lib.hasAttr "libS" args) "default.nix") (ls dir))
|
||||||
|
|
Loading…
Reference in New Issue