From bc74c3e1eb5144e8c66cdba1b337eec7dcc451cf Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 5 Oct 2024 18:28:16 -0700 Subject: [PATCH] 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 --- nalai/etc/nixos/configuration.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nalai/etc/nixos/configuration.nix b/nalai/etc/nixos/configuration.nix index f877be3..9241a4b 100644 --- a/nalai/etc/nixos/configuration.nix +++ b/nalai/etc/nixos/configuration.nix @@ -167,8 +167,6 @@ # Enable the OpenSSH daemon. # services.openssh.enable = true; - - systemd.network.enable = true; # Open ports in the firewall. networking.firewall.allowedTCPPorts = [ 5353 50007 ]; networking.firewall.allowedUDPPorts = [ 5353 50007 ]; @@ -183,6 +181,9 @@ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.05"; # Did you read the comment? + systemd.network.enable = true; + systemd.network.wait-online.enable = false; + virtualisation.docker.enable = false; virtualisation.podman.enable = true; }