DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: a00bc15efc28be2bbc57b91c0ccd0ac80adc1598 nix-arta/modules/nixos/unfree.nix -rw-r--r-- 382 bytes
a00bc15eJonni Liljamo feat: unfree 6 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  flake.modules.nixos.unfree = {
    config,
    lib,
    ...
  }: let
    cfg = config.arta.unfree;
  in {
    options.arta.unfree = {
      allow = lib.mkOption {
        type = lib.types.listOf lib.types.str;
        default = [];
      };
    };

    config = {
      nixpkgs.config.allowUnfreePredicate = pkg:
        builtins.elem (lib.getName pkg) cfg.allow;
    };
  };
}