diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-10-21 00:41:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 00:41:01 +0200 |
commit | f6cd17269ea0076631938886d8ed4764c71d7731 (patch) | |
tree | 455945f1c770ac8f325bdd638d7015de5fc98a41 /nixos/modules/virtualisation | |
parent | 6e5ccaa34f381d557e8df9f049b69218afd16ad8 (diff) | |
parent | 16a7ff5b867f6e9cb615eac7a136421a197921c0 (diff) | |
download | nixpkgs-f6cd17269ea0076631938886d8ed4764c71d7731.tar nixpkgs-f6cd17269ea0076631938886d8ed4764c71d7731.tar.gz nixpkgs-f6cd17269ea0076631938886d8ed4764c71d7731.tar.bz2 nixpkgs-f6cd17269ea0076631938886d8ed4764c71d7731.tar.lz nixpkgs-f6cd17269ea0076631938886d8ed4764c71d7731.tar.xz nixpkgs-f6cd17269ea0076631938886d8ed4764c71d7731.tar.zst nixpkgs-f6cd17269ea0076631938886d8ed4764c71d7731.zip |
Merge pull request #49403 from andir/qemu_test_reduce_closure
qemu_test: disable features that are not needed for tests (closure 641 -> 335.3M)
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/qemu-guest-agent.nix | 7 |
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 665224e35d8..6a735f451a7 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; }; |