about summary refs log tree commit diff
path: root/nixos/alpha
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-01-15 21:33:35 +0900
committersefidel <contact@sefidel.net>2024-01-15 21:33:35 +0900
commite8d1f6fcb7e0a950c9278f1be85cc863fb4bcc8d (patch)
treed700a873c5d0075ad144eb8a857b419d5564ee3c /nixos/alpha
parentaa9f3f09d4e09ae25b054c68aab4342e54fdfbf4 (diff)
downloadnixrc-e8d1f6fcb7e0a950c9278f1be85cc863fb4bcc8d.tar.gz
nixrc-e8d1f6fcb7e0a950c9278f1be85cc863fb4bcc8d.zip
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.
Diffstat (limited to 'nixos/alpha')
-rw-r--r--nixos/alpha/configuration.nix5
1 files changed, 5 insertions, 0 deletions
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";