From 5e8f7218074829ca1ef348ae42d485d964c461e6 Mon Sep 17 00:00:00 2001 From: glanch <49610590+glanch@users.noreply.github.com> Date: Tue, 9 Apr 2024 10:14:39 +0200 Subject: [PATCH] Add WantedBy to libvirtd configuration service (#79) --- modules/libvirtd/domain.nix | 1 + modules/libvirtd/network.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/libvirtd/domain.nix b/modules/libvirtd/domain.nix index 52a0138..da66607 100644 --- a/modules/libvirtd/domain.nix +++ b/modules/libvirtd/domain.nix @@ -874,6 +874,7 @@ in { }; config = mkIf cfg.declarative { + systemd.services.libvirtd-config.wantedBy = [ "multi-user.target" ]; systemd.services.libvirtd-config.script = lib.mkAfter '' mkdir -p /var/lib/libvirt/qemu mkdir -p /var/lib/libvirt/qemu/autostart diff --git a/modules/libvirtd/network.nix b/modules/libvirtd/network.nix index 12a416f..7818455 100644 --- a/modules/libvirtd/network.nix +++ b/modules/libvirtd/network.nix @@ -254,6 +254,7 @@ in { }; config = mkIf cfg.declarative { + systemd.services.libvirtd-config.wantedBy = [ "multi-user.target" ]; systemd.services.libvirtd-config.script = lib.mkAfter '' mkdir -p /var/lib/libvirt/qemu/networks mkdir -p /var/lib/libvirt/qemu/networks/autostart