From e8d1f6fcb7e0a950c9278f1be85cc863fb4bcc8d Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 15 Jan 2024 21:33:35 +0900 Subject: fix(nixos): work around nm-online * This makes NetworkManager-wait-online service only wait for the network to be reachable, instead of waiting for the startup to complete. --- nixos/alpha/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixos/alpha') diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index 436cbbd..3bb0f3e 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -60,6 +60,11 @@ networking.useDHCP = false; networking.firewall.enable = true; + # TODO: https://github.com/NixOS/nixpkgs/issues/180175 + systemd.services.NetworkManager-wait-online.serviceConfig.ExecStart = '' + ${pkgs.networkmanager}/bin/nm-online -q + ''; + programs.nm-applet.enable = true; i18n.defaultLocale = "en_US.UTF-8"; -- cgit 1.4.1