14 lines
269 B
Nix
14 lines
269 B
Nix
{ lib, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.n.misc.unfreePackages;
|
|
in {
|
|
options.n.misc.unfreePackages = mkOption {
|
|
type = with types; listOf str;
|
|
};
|
|
|
|
config = {
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) cfg;
|
|
};
|
|
}
|