nixos/qemu-guest-agent: add statedir

This commit is contained in:
Izorkin 2021-01-27 13:57:42 +03:00
parent 7abc672ea9
commit e65d8e4845
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09

View File

@ -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";
};
};
}