From a937dbedea73a562101067fe72a4aa0dadea698d Mon Sep 17 00:00:00 2001 From: Lizard Date: Wed, 31 Oct 2018 00:01:00 +0100 Subject: [PATCH] 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. --- nixos/modules/virtualisation/libvirtd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index 3e38662f5b0..f4d7af1664a 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -196,6 +196,8 @@ in { wantedBy = [ "multi-user.target" ]; path = with pkgs; [ coreutils libvirt gawk ]; restartIfChanged = false; + + environment.ON_SHUTDOWN = "${cfg.onShutdown}"; }; systemd.sockets.virtlogd = {