summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-10-19 17:58:10 +0200
committerAndreas Rammhold <andreas@rammhold.de>2020-10-19 17:58:10 +0200
commite127ba7873cf3979da00cbc691155c0a87ecfc36 (patch)
tree8132e340f94d9f3d91a75eaa4f0780a81de8a1a1 /nixos
parent2451796b49a6b1b46d02e9c40ecf9de8acaba7b2 (diff)
nixos/qemu-guest-agent: make the QEMU guest agent package configurable
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/qemu-guest-agent.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/qemu-guest-agent.nix b/nixos/modules/virtualisation/qemu-guest-agent.nix
index 665224e35d8c..6a735f451a7e 100644
--- a/nixos/modules/virtualisation/qemu-guest-agent.nix
+++ b/nixos/modules/virtualisation/qemu-guest-agent.nix
@@ -12,6 +12,11 @@ in {
default = false;
description = "Whether to enable the qemu guest agent.";
};
+ package = mkOption {
+ type = types.package;
+ default = pkgs.qemu.ga;
+ description = "The QEMU guest agent package.";
+ };
};
config = mkIf cfg.enable (
@@ -25,7 +30,7 @@ in {
systemd.services.qemu-guest-agent = {
description = "Run the QEMU Guest Agent";
serviceConfig = {
- ExecStart = "${pkgs.qemu.ga}/bin/qemu-ga";
+ ExecStart = "${cfg.package}/bin/qemu-ga";
Restart = "always";
RestartSec = 0;
};