Skip to content

Commit

Permalink
Merge pull request #48 from britter/virtualisation-fix
Browse files Browse the repository at this point in the history
virtualisation: Make parallels handling more lazy
  • Loading branch information
brianmcgee authored Oct 27, 2024
2 parents 9f2a45b + f6137cb commit 15b6531
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/nixos/virtualisation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ in

# parallels
hardware.parallels.enable = lib.mkIf cfg.parallels.enable (lib.mkDefault true);
nixpkgs.config = lib.mkIf (!options.nixpkgs.pkgs.isDefined) {
allowUnfreePredicate = lib.mkIf cfg.parallels.enable (
pkg: builtins.elem (lib.getName pkg) [ "prl-tools" ]
);
nixpkgs.config = lib.mkIf (!options.nixpkgs.pkgs.isDefined && cfg.parallels.enable) {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "prl-tools" ];
};
};
}

0 comments on commit 15b6531

Please sign in to comment.