From bd46b5610b554de89ec2110eb5c67c7b4876f66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Tue, 1 Oct 2024 11:00:26 -0300 Subject: [PATCH] nixos: workaround for nm-wait-online hanging during nixos switch --- system/configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/configuration.nix b/system/configuration.nix index c8095f6..b905240 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -48,6 +48,15 @@ services.geoclue2.enable = true; + # Workaround for nm-wait-online hanging?? + # Ref: https://github.com/NixOS/nixpkgs/issues/180175 + systemd.services.NetworkManager-wait-online = { + serviceConfig.ExecStart = [ + "" + "${pkgs.networkmanager}/bin/nm-online -q" + ]; + }; + systemd.extraConfig = '' DefaultTimeoutStopSec=10s '';