Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit3982a9e50ee96af14e449dfe284aea41a0134e96 (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-10-09 20:08:57 +0300
Committer
 Syndamia <kamen@syndamia.com>
2026-10-09 20:08:57 +0300
Filese40e7bd6522a48243e27ac52d0cd190c65ac837f
nix-3982a9e50ee96af14e449dfe284aea41a0134e96.tar
nix-3982a9e50ee96af14e449dfe284aea41a0134e96.tar.gz
nix-3982a9e50ee96af14e449dfe284aea41a0134e96.zip
Parent546f7a8063be282bcf25688aa7f991cbff49df0b (diff)
feat(autoconfig): Set allowUnfree and add inputs for custom packages
1 files changed, 2 insertions, 1 deletions
-rw-r--r--autoconfig.nix3
diff --git a/autoconfig.nix b/autoconfig.nix
index 6df931f..f092bd7 100644
--- a/autoconfig.nix
+++ b/autoconfig.nix
@@ -5,9 +5,10 @@ let
custom-packages = system:
let
+ pkgs' = import nixpkgs.legacyPackages.${system}.path { inherit system; config.allowUnfree = true; };
packages = lib.mapAttrs
(name: _:
- nixpkgs.legacyPackages.${system}.callPackage ./packages/${name} packages)
+ pkgs'.callPackage ./packages/${name} (packages // { inherit inputs; }))
(lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./packages));
in
packages;