Summary Files Commits Branches @commit @diff @stats
path: root / autoconfig.nix
diff options
context:
space:
mode:
Commitc8b3a32097c3206b38b039cb578c090342bf865c (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-01-27 20:34:09 +0200
Committer
 Syndamia <kamen@syndamia.com>
2026-01-27 20:35:58 +0200
Files38c6ed84f4ed94d07f23c36cffa2978af3bec540 /autoconfig.nix
nix-c8b3a32097c3206b38b039cb578c090342bf865c.tar
nix-c8b3a32097c3206b38b039cb578c090342bf865c.tar.gz
nix-c8b3a32097c3206b38b039cb578c090342bf865c.zip
Parent126092fb6624b9ed54f28b887d7658a749a2e3ac (diff)
feat: Overlay packages of inputs not starting with nixpkgs-
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