nixos/libvirt: Add virtlogd and virtlockd systemd sockets and services

This commit is contained in:
Rickard Nilsson 2016-06-27 13:02:47 +02:00
parent 1b54e48561
commit 301b4e9018

View File

@ -155,8 +155,29 @@ in
};
};
systemd.sockets.virtlogd = {
description = "Virtual machine log manager socket";
wantedBy = [ "sockets.target" ];
listenStreams = [ "/run/libvirt/virtlogd-sock" ];
};
systemd.services.virtlogd = {
description = "Virtual machine log manager";
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlogd virtlogd";
};
systemd.sockets.virtlockd = {
description = "Virtual machine lock manager socket";
wantedBy = [ "sockets.target" ];
listenStreams = [ "/run/libvirt/virtlockd-sock" ];
};
systemd.services.virtlockd = {
description = "Virtual machine lock manager";
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlockd virtlockd";
};
users.extraGroups.libvirtd.gid = config.ids.gids.libvirtd;
};
}