Add back allowUnfreePackages

This commit is contained in:
Bun 2025-03-08 04:22:31 -05:00
parent 3f951d4411
commit 410605f638

View file

@ -1,22 +1,30 @@
{ config, pkgs, unstable, ... }: { config, lib, pkgs, unstable, ... }:
{ {
nix = { options.nixpkgs.allowUnfreePackages = lib.mkOption {
settings = { type = with lib.types; listOf str;
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
}; };
_module.args.pkgsUnstable = import unstable { config = {
inherit (pkgs.stdenv.hostPlatform) system; nix = {
inherit (config.nixpkgs) config; settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowUnfreePackages;
_module.args.pkgsUnstable = import unstable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
}; };
} }