1
Fork 0
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:
RGBCube 2025-07-06 22:13:38 +03:00
parent c57a59e38e
commit c5d9a39ed5
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
2 changed files with 9 additions and 0 deletions

View file

@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }: let
inherit (lib) attrValues optionalAttrs;
in {
unfree.allowedNames = [ "claude-code" ];
environment.systemPackages = attrValues <| {
inherit (pkgs)
asciinema

View 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;
}