diff options
author | Lizard <tmplt@dragons.rocks> | 2018-10-31 00:01:00 +0100 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-10-31 00:01:00 +0100 |
commit | a937dbedea73a562101067fe72a4aa0dadea698d (patch) | |
tree | 2001aa6ace0be94efd1581d189890f68a3b8a523 /nixos/modules/virtualisation/libvirtd.nix | |
parent | 5e5e57c5728722450091160b2b0dbf53a311b230 (diff) |
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.
Diffstat (limited to 'nixos/modules/virtualisation/libvirtd.nix')
-rw-r--r-- | nixos/modules/virtualisation/libvirtd.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index 3e38662f5b0f..f4d7af1664af 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 = { |