about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-02-02 00:53:23 +0900
committersefidel <contact@sefidel.net>2024-02-02 00:53:23 +0900
commit8de29756643909bb17459e842e8f9459810d2ab8 (patch)
treea70edba09763cbdcf01d9583d72ba1982a281ff7
parent685a59103bb3db8d11e9d6108053d8972c42aa9f (diff)
downloadnixrc-8de29756643909bb17459e842e8f9459810d2ab8.tar.gz
nixrc-8de29756643909bb17459e842e8f9459810d2ab8.zip
fix(nixos): fix NetworkManager-wait-online workaround
-rw-r--r--nixos/alpha/configuration.nix4
-rw-r--r--nixos/haruka/configuration.nix4
2 files changed, 2 insertions, 6 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index b9284dc..7f416e3 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -67,9 +67,7 @@
   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
-  '';
+  systemd.services.NetworkManager-wait-online.serviceConfig.ExecStart = lib.mkForce [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
 
   programs.nm-applet.enable = true;
 
diff --git a/nixos/haruka/configuration.nix b/nixos/haruka/configuration.nix
index ef30905..dc09c2a 100644
--- a/nixos/haruka/configuration.nix
+++ b/nixos/haruka/configuration.nix
@@ -74,9 +74,7 @@
   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
-  '';
+  systemd.services.NetworkManager-wait-online.serviceConfig.ExecStart = lib.mkForce [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
 
   programs.nm-applet.enable = true;