diff options
author | Rickard Nilsson <rickynils@gmail.com> | 2016-06-27 13:02:47 +0200 |
---|---|---|
committer | Rickard Nilsson <rickynils@gmail.com> | 2016-06-27 13:32:21 +0200 |
commit | 301b4e9018e8adcbc9009b28d491df22cced8d75 (patch) | |
tree | 6b66546b66aea3594b1f7091a33752c2a8225700 /nixos/modules/virtualisation/libvirtd.nix | |
parent | 1b54e48561c09219bfec7e73636bd999014148b8 (diff) |
nixos/libvirt: Add virtlogd and virtlockd systemd sockets and services
Diffstat (limited to 'nixos/modules/virtualisation/libvirtd.nix')
-rw-r--r-- | nixos/modules/virtualisation/libvirtd.nix | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index a2bfc447e9dc..748ef369bc1e 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -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; }; - } |