From b207e032bbe35acf5286812ae191be1d4e853c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Montero?= Date: Fri, 25 Nov 2022 19:07:18 -0600 Subject: [PATCH] =?UTF-8?q?a=C3=B1ade=20whitelist=20de=20unfree=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/allowUnfreeWhitelist.nix | 7 +++++++ home/default.nix | 1 + 2 files changed, 8 insertions(+) create mode 100644 home/allowUnfreeWhitelist.nix diff --git a/home/allowUnfreeWhitelist.nix b/home/allowUnfreeWhitelist.nix new file mode 100644 index 0000000..0d850ba --- /dev/null +++ b/home/allowUnfreeWhitelist.nix @@ -0,0 +1,7 @@ +{pkgs, config, lib, ...} : +with lib; +{ + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "vmware-horizon-client" + ]; +} diff --git a/home/default.nix b/home/default.nix index ecf1433..9deedcd 100644 --- a/home/default.nix +++ b/home/default.nix @@ -8,6 +8,7 @@ with lib; ./isolation.nix ./path.nix ./systemd + ./allowUnfreeWhitelist.nix ]; nixpkgs.overlays = [ self.overlay ];