summary refs log tree commit diff
path: root/nixos/modules/virtualisation/qemu-guest-agent.nix
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2021-01-27 13:57:42 +0300
committerIzorkin <izorkin@elven.pw>2021-03-31 20:07:17 +0300
commite65d8e4845470be056f759d7fbe390b4dcccc070 (patch)
tree64b88afc4f2aecb61c2ee51540cd555a23c2a0a0 /nixos/modules/virtualisation/qemu-guest-agent.nix
parent7abc672ea951429167238927191367e0a1d588fb (diff)
downloadnixpkgs-e65d8e4845470be056f759d7fbe390b4dcccc070.tar
nixpkgs-e65d8e4845470be056f759d7fbe390b4dcccc070.tar.gz
nixpkgs-e65d8e4845470be056f759d7fbe390b4dcccc070.tar.bz2
nixpkgs-e65d8e4845470be056f759d7fbe390b4dcccc070.tar.lz
nixpkgs-e65d8e4845470be056f759d7fbe390b4dcccc070.tar.xz
nixpkgs-e65d8e4845470be056f759d7fbe390b4dcccc070.tar.zst
nixpkgs-e65d8e4845470be056f759d7fbe390b4dcccc070.zip
nixos/qemu-guest-agent: add statedir
Diffstat (limited to 'nixos/modules/virtualisation/qemu-guest-agent.nix')
-rw-r--r--nixos/modules/virtualisation/qemu-guest-agent.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/qemu-guest-agent.nix b/nixos/modules/virtualisation/qemu-guest-agent.nix
index 6a735f451a7..3824d0c168f 100644
--- a/nixos/modules/virtualisation/qemu-guest-agent.nix
+++ b/nixos/modules/virtualisation/qemu-guest-agent.nix
@@ -30,9 +30,12 @@ in {
       systemd.services.qemu-guest-agent = {
         description = "Run the QEMU Guest Agent";
         serviceConfig = {
-          ExecStart = "${cfg.package}/bin/qemu-ga";
+          ExecStart = "${cfg.package}/bin/qemu-ga --statedir /run/qemu-ga";
           Restart = "always";
           RestartSec = 0;
+          # Runtime directory and mode
+          RuntimeDirectory = "qemu-ga";
+          RuntimeDirectoryMode = "0755";
         };
       };
     }