Skip to content

Commit 15b6531

Browse files
authored
Merge pull request #48 from britter/virtualisation-fix
virtualisation: Make parallels handling more lazy
2 parents 9f2a45b + f6137cb commit 15b6531

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/nixos/virtualisation.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ in
9797

9898
# parallels
9999
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-
);
100+
nixpkgs.config = lib.mkIf (!options.nixpkgs.pkgs.isDefined && cfg.parallels.enable) {
101+
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "prl-tools" ];
104102
};
105103
};
106104
}

0 commit comments

Comments
 (0)