From a4195f7b809282dacb2c129549f96e3db6d554ca Mon Sep 17 00:00:00 2001 From: Marc Partensky Date: Mon, 11 Sep 2023 07:36:32 +0200 Subject: [PATCH] unfree spotify --- nixos/.config/home-manager/home.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nixos/.config/home-manager/home.nix b/nixos/.config/home-manager/home.nix index 71754bc..4d79fd7 100644 --- a/nixos/.config/home-manager/home.nix +++ b/nixos/.config/home-manager/home.nix @@ -15,8 +15,6 @@ # release notes. home.stateVersion = "23.05"; # Please read the comment before changing. - nixpkgs.config.allowUnfree = true; - # Let Home Manager install and manage itself. programs.home-manager.enable = true; wayland.windowManager.hyprland.enable = true; @@ -467,8 +465,6 @@ ydotool # pkgs.hello - ### Proprietary - spotify # # It is sometimes useful to fine-tune packages, for example, by applying # # overrides. You can do that directly here, just don't forget the @@ -484,4 +480,11 @@ # '') ]; + nixpkgs.config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkg) [ + # Add additional package names here + spotify + ]; +} + }