git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/qemu-guest-agent: add statedir
commite65d8e4845470be056f759d7fbe390b4dcccc070 authorIzorkin <izorkin@elven.pw> dateWed 27 Jan 2021, 13:57 (6 years ago) parent7abc672
1 file changed+4−1
nixos/modules/virtualisation/qemu-guest-agent.nix+4−1
nixos/modules/virtualisation/qemu-guest-agent.nix+4−1
@@ -30,9 +30,12 @@ in {
3030 systemd.services.qemu-guest-agent = {
3131 description = "Run the QEMU Guest Agent";
3232 serviceConfig = {
33− ExecStart = "${cfg.package}/bin/qemu-ga";
33+ ExecStart = "${cfg.package}/bin/qemu-ga --statedir /run/qemu-ga";
3434 Restart = "always";
3535 RestartSec = 0;
36+ # Runtime directory and mode
37+ RuntimeDirectory = "qemu-ga";
38+ RuntimeDirectoryMode = "0755";
3639 };
3740 };
3841 }