We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f2a45b + f6137cb commit 15b6531Copy full SHA for 15b6531
modules/nixos/virtualisation.nix
@@ -97,10 +97,8 @@ in
97
98
# parallels
99
hardware.parallels.enable = lib.mkIf cfg.parallels.enable (lib.mkDefault true);
100
- nixpkgs.config = lib.mkIf (!options.nixpkgs.pkgs.isDefined) {
101
- allowUnfreePredicate = lib.mkIf cfg.parallels.enable (
102
- pkg: builtins.elem (lib.getName pkg) [ "prl-tools" ]
103
- );
+ nixpkgs.config = lib.mkIf (!options.nixpkgs.pkgs.isDefined && cfg.parallels.enable) {
+ allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "prl-tools" ];
104
};
105
106
}
0 commit comments