Minecraft

This commit is contained in:
Charlotte Van Petegem 2021-03-08 14:57:26 +01:00
parent 2060295da9
commit 3ac380fd61
No known key found for this signature in database
GPG key ID: 019E764B7184435A
10 changed files with 53 additions and 20 deletions

View file

@ -47,9 +47,9 @@ in
default = true;
example = false;
};
enableUnfree = lib.mkOption {
default = false;
example = true;
unfreePackages = lib.mkOption {
default = [ ];
example = [ "teams" ];
};
# Note that this is only enabled for charlotte, until https://github.com/bennofs/nix-index/issues/143 is resolved.
enableNixIndex = lib.mkOption {
@ -84,14 +84,7 @@ in
'');
};
nixpkgs.config = lib.mkIf config.chvp.nix.enableUnfree {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"citrix-workspace"
"dropbox"
"teams"
"google-chrome"
];
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.chvp.nix.unfreePackages;
nixpkgs.overlays = lib.mkIf config.chvp.nix.enableFlakes [
(self: super: {
nix = super.nixUnstable;