From 6dc1c73aba11efa3229659bcaf596b21ef6f80bd Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Fri, 12 Aug 2022 19:16:14 -0400 Subject: nixos/libvirtd: Do not add autostart network This does make the out-of-the-box install perhaps a bit worse, since networking may need to be manually configured. However, it makes it less frustrating that upon every start of this service, a *removed* autostart network will be re-added when removed by the user. See https://github.com/NixOS/nixpkgs/issues/73418 for details. Behavior from other distros: - Adds autostart net on install: Fedora - Does not add autostart net : Debian, Arch This does not break any existing installs since it does not affect any autostart network already in-place. --- nixos/modules/virtualisation/libvirtd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index f7d0ef39c5af0..817d7180a0225 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -293,7 +293,7 @@ in # Copy default libvirt network config .xml files to /var/lib # Files modified by the user will not be overwritten for i in $(cd ${cfg.package}/var/lib && echo \ - libvirt/qemu/networks/*.xml libvirt/qemu/networks/autostart/*.xml \ + libvirt/qemu/networks/*.xml \ libvirt/nwfilter/*.xml ); do mkdir -p /var/lib/$(dirname $i) -m 755 -- cgit 1.4.1