From 52747120c100c4a37c61725322e9216618b552cb Mon Sep 17 00:00:00 2001 From: Luke Adams Date: Thu, 1 Mar 2018 17:06:43 -0600 Subject: [PATCH] parallels: add package config option allows overriding of package with newer versions --- nixos/modules/virtualisation/parallels-guest.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nixos/modules/virtualisation/parallels-guest.nix b/nixos/modules/virtualisation/parallels-guest.nix index e3b28780ed6..36ca7f356d4 100644 --- a/nixos/modules/virtualisation/parallels-guest.nix +++ b/nixos/modules/virtualisation/parallels-guest.nix @@ -3,9 +3,7 @@ with lib; let - - prl-tools = config.boot.kernelPackages.prl-tools; - + prl-tools = config.hardware.parallels.package; in { @@ -32,6 +30,16 @@ in disable this to manually mount shares. ''; }; + + package = mkOption { + type = types.package; + default = config.boot.kernelPackages.prl-tools; + defaultText = "config.boot.kernelPackages.prl-tools"; + example = literalExample "config.boot.kernelPackages.prl-tools"; + description = '' + Defines which package to use for prl-tools. Override to change the version. + ''; + }; }; };