mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 02:57:44 +00:00
modules: add unfree software module
This commit is contained in:
parent
c57a59e38e
commit
c5d9a39ed5
2 changed files with 9 additions and 0 deletions
7
modules/common/unfree.nix
Normal file
7
modules/common/unfree.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, ... }: let
|
||||
inherit (lib) mkValue;
|
||||
in {
|
||||
options.unfree.allowedNames = mkValue [];
|
||||
|
||||
config.nixpkgs.config.allowUnfreePredicate = package: lib.elem package.pname config.unfree.allowedNames;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue