diff --git a/lib/nix-lib/default.nix b/lib/nix-lib/default.nix index 39e446d..b4d480a 100644 --- a/lib/nix-lib/default.nix +++ b/lib/nix-lib/default.nix @@ -190,8 +190,11 @@ rec { recursiveFuse [ (enableModules enabledModules) - { imports = mkImports root ([ "_hardware-configuration" ] ++ enabledServices); } + { + imports = + (extraConfig.imports or [ ]) ++ (mkImports root ([ "_hardware-configuration" ] ++ enabledServices)); + } - extraConfig + (removeAttrs extraConfig [ "imports" ]) ]; }