Merge pull request #72000 from flokli/virtualbox-vboxnet0-systemd-networkd-wait-online-service
nixos/virtualbox: fix systemd-networkd-wait-online.service waiting for vboxnet0
commita8fccf217285845638b5f26c99b78e6a0e025edb
authorFranz Pletz <fpletz@fnordicwalking.de>
dateSat 26 Oct 2019, 13:01 (7 years ago)
parent98f0fcf32fd887
nixos/modules/virtualisation/virtualbox-host.nix+8−1
@@ -149,5 +149,12 @@ in
149149 # Make sure NetworkManager won't assume this interface being up
150150 # means we have internet access.
151151 networking.networkmanager.unmanaged = ["vboxnet0"];
152− })]);
152+ }) (mkIf config.networking.useNetworkd {
153+ systemd.network.networks."40-vboxnet0".extraConfig = ''
154+ [Link]
155+ RequiredForOnline=no
156+ '';
157+ })
158+
159+]);
153160}