nixos/libvirtd: utilize onShutdown option (#49480)
`services.virtualisation.libvirtd.onShutdown` was previously unused.
While suspending a domain on host shutdown is the default, this commit
makes it so domains can be shut down, also.
commita937dbedea73a562101067fe72a4aa0dadea698d
authorLizard <tmplt@dragons.rocks>
dateWed 31 Oct 2018, 00:01 (8 years ago)
parent5e5e57c
nixos/modules/virtualisation/libvirtd.nix+2
@@ -196,6 +196,8 @@ in {
196196 wantedBy = [ "multi-user.target" ];
197197 path = with pkgs; [ coreutils libvirt gawk ];
198198 restartIfChanged = false;
199+
200+ environment.ON_SHUTDOWN = "${cfg.onShutdown}";
199201 };
200202
201203 systemd.sockets.virtlogd = {