diff options
author | Andrew Marshall <andrew@johnandrewmarshall.com> | 2022-08-12 19:16:14 -0400 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2022-08-18 15:48:05 +0200 |
commit | 6dc1c73aba11efa3229659bcaf596b21ef6f80bd (patch) | |
tree | 6ab4c64f0125ba64bc0107e4de7128ed128dcbbe /nixos | |
parent | ad40478324d7d20c07ff6085ef47f9c9e8d5aa38 (diff) |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/virtualisation/libvirtd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 |