Disable network wait-online

It keeps delaying the nixos rebuild unnecessarily. Apparently this
should be disabled when you use Network Manager for networking.
https://discourse.nixos.org/t/systemd-networkd-wait-online-934764-timeout-occurred-while-waiting-for-network-connectivity/33656/6
This commit is contained in:
Eli Ribble 2024-10-05 18:28:16 -07:00
parent ad3adb8db2
commit bc74c3e1eb
1 changed files with 3 additions and 2 deletions

View File

@ -167,8 +167,6 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # services.openssh.enable = true;
systemd.network.enable = true;
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 5353 50007 ]; networking.firewall.allowedTCPPorts = [ 5353 50007 ];
networking.firewall.allowedUDPPorts = [ 5353 50007 ]; networking.firewall.allowedUDPPorts = [ 5353 50007 ];
@ -183,6 +181,9 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
systemd.network.enable = true;
systemd.network.wait-online.enable = false;
virtualisation.docker.enable = false; virtualisation.docker.enable = false;
virtualisation.podman.enable = true; virtualisation.podman.enable = true;
} }