mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 18:17: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
|
@ -1,6 +1,8 @@
|
||||||
{ config, lib, pkgs, ... }: let
|
{ config, lib, pkgs, ... }: let
|
||||||
inherit (lib) attrValues optionalAttrs;
|
inherit (lib) attrValues optionalAttrs;
|
||||||
in {
|
in {
|
||||||
|
unfree.allowedNames = [ "claude-code" ];
|
||||||
|
|
||||||
environment.systemPackages = attrValues <| {
|
environment.systemPackages = attrValues <| {
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
asciinema
|
asciinema
|
||||||
|
|
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