Dear Nixers,
When I run sudo nixos-rebuild switch --upgrade
I get the following error:
activating the configuration...
setting up /etc...
reloading user units for freek...
setting up tmpfiles
warning: the following units failed: NetworkManager-wait-online.service
× NetworkManager-wait-online.service - Network Manager Wait Online
Loaded: loaded (/etc/systemd/system/NetworkManager-wait-online.service; enabled; preset: enabled)
Drop-In: /nix/store/bwp1df01a5kcmi8ylr1afdp61vj2rym4-system-units/NetworkManager-wait-online.service.d
└─overrides.conf
Active: failed (Result: exit-code) since Thu 2023-07-20 20:36:12 CEST; 58ms ago
Duration: 5h 9min 32.773s
Docs: man:nm-online(1)
Process: 34161 ExecStart=/nix/store/6kf4ml6ziqwf1vrm1wmja8dbk3wnizcv-networkmanager-1.42.6/bin/nm-online -s -q (code=exited, status=1/FAILURE)
Main PID: 34161 (code=exited, status=1/FAILURE)
IP: 0B in, 0B out
CPU: 29ms
jul 20 20:35:12 nixos systemd[1]: Starting Network Manager Wait Online...
jul 20 20:36:12 nixos systemd[1]: NetworkManager-wait-online.service: Main process exited, code=exited, status=1/FAILURE
jul 20 20:36:12 nixos systemd[1]: NetworkManager-wait-online.service: Failed with result 'exit-code'.
jul 20 20:36:12 nixos systemd[1]: Failed to start Network Manager Wait Online.
warning: error(s) occurred while switching to the new configuration
I have discussed this on GitHub here: NetworkManager's nm-online kills nixos-rebuild · Issue #180175 · NixOS/nixpkgs · GitHub , I have not found any way to fix this.
Does anybody know how to do this?