[Packages + Hardware] Add aviallon.programs.allowUnfreeList to whitelist unfree packages (and add Nvidia-related things in it)

This commit is contained in:
Antoine Viallon 2022-02-28 23:35:26 +01:00
parent ecc636d64b
commit 34b6b977f6
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
2 changed files with 15 additions and 7 deletions

View file

@ -33,6 +33,12 @@ in
description = "Add specific compile flags";
type = types.listOf types.str;
};
allowUnfreeList = mkOption {
default = [ ];
example = [ "nvidia-x11" "steam" ];
description = "Allow specific unfree software to be installed";
type = types.listOf types.str;
};
};
config = mkIf cfg.enable {
@ -50,6 +56,7 @@ in
};
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) cfg.allowUnfreeList;
environment.systemPackages = with pkgs; with libsForQt5; [
vim