Summary Files Commits Branches @commit @diff @stats
path: root / autoconfig.nix
diff options
context:
space:
mode:
Commit69a9380edb5e1d12ddff78159e30c1229a8d2009 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-07-25 16:50:53 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-07-25 16:50:53 +0300
Files4df30334217c3e7e4efee955d39e44af8c0d5871 /autoconfig.nix
nix-69a9380edb5e1d12ddff78159e30c1229a8d2009.tar
nix-69a9380edb5e1d12ddff78159e30c1229a8d2009.tar.gz
nix-69a9380edb5e1d12ddff78159e30c1229a8d2009.zip
Parentf2cebf38e4e290cabb365780cec2381403d093c2 (diff)
feat(autoconfig): Pass the custom packages to themselves as dependencies
1 files changed, 7 insertions, 4 deletions
-rw-r--r--autoconfig.nix11
diff --git a/autoconfig.nix b/autoconfig.nix
index 2872be6..350f2bf 100644
--- a/autoconfig.nix
+++ b/autoconfig.nix
@@ -4,10 +4,13 @@ let
inherit (nixpkgs) lib;
custom-packages = system:
- lib.mapAttrs
- (name: _:
- nixpkgs.legacyPackages.${system}.callPackage ./packages/${name} { })
- (lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./packages));
+ let
+ packages = lib.mapAttrs
+ (name: _:
+ nixpkgs.legacyPackages.${system}.callPackage ./packages/${name} packages)
+ (lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./packages));
+ in
+ packages;
in {
configurations =
lib.mapAttrs