Skip to content

Commit

Permalink
Add WantedBy to libvirtd configuration service (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
glanch authored Apr 9, 2024
1 parent 592827d commit 5e8f721
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/libvirtd/domain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions modules/libvirtd/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e8f721

Please sign in to comment.