Summary Files Commits Branches @commit @diff @stats
path: root / autoconfig.nix
diff options
context:
space:
mode:
1 files changed, 4 insertions, 3 deletions
-rw-r--r--autoconfig.nix7
diff --git a/autoconfig.nix b/autoconfig.nix
index 1660397..6df931f 100644
--- a/autoconfig.nix
+++ b/autoconfig.nix
@@ -1,4 +1,4 @@
-{ inputs, ... }:
+{ inputs, modules ? [], ... }:
let
inherit (inputs) nixpkgs;
inherit (nixpkgs) lib;
@@ -18,7 +18,7 @@ let
nixpkgs-special.legacyPackages.${system} or nixpkgs-special.packages.${system})
(lib.filterAttrs
(name: _:
- lib.hasPrefix "nixpkgs-" name)
+ name != "nixpkgs")
inputs);
package-overlays =
@@ -81,7 +81,8 @@ in {
++ (if lib.pathIsRegularFile ./machines/${dir}/configuration.nix
then [ ./machines/${dir}/configuration.nix ]
else [])
- ++ package-modules;
+ ++ package-modules
+ ++ modules;
})
(lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./machines));
packages = let