Initial commit
This commit is contained in:
13
modules/n/unfree.nix
Normal file
13
modules/n/unfree.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user