diff --git a/nixos/default.nix b/nixos/default.nix index ac93ed7d..7aa0c85f 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -75,5 +75,12 @@ LC_TIME = "en_US.UTF-8"; }; + # https://github.com/NixOS/nixpkgs/issues/180175#issuecomment-1658731959 + systemd.services.NetworkManager-wait-online = { + serviceConfig = { + ExecStart = [ "" "${pkgs.networkmanager}/bin/nm-online -q" ]; + }; + }; + system.stateVersion = stateVersion; } diff --git a/nixos/minimal.nix b/nixos/minimal.nix index f722a232..36a71494 100644 --- a/nixos/minimal.nix +++ b/nixos/minimal.nix @@ -50,5 +50,12 @@ LC_TIME = "en_US.UTF-8"; }; + # https://github.com/NixOS/nixpkgs/issues/180175#issuecomment-1658731959 + systemd.services.NetworkManager-wait-online = { + serviceConfig = { + ExecStart = [ "" "${pkgs.networkmanager}/bin/nm-online -q" ]; + }; + }; + system.stateVersion = stateVersion; } diff --git a/nixos/small.nix b/nixos/small.nix index 58fc9392..ab5e3cf7 100644 --- a/nixos/small.nix +++ b/nixos/small.nix @@ -47,5 +47,12 @@ LC_TIME = "en_US.UTF-8"; }; + # https://github.com/NixOS/nixpkgs/issues/180175#issuecomment-1658731959 + systemd.services.NetworkManager-wait-online = { + serviceConfig = { + ExecStart = [ "" "${pkgs.networkmanager}/bin/nm-online -q" ]; + }; + }; + system.stateVersion = stateVersion; } \ No newline at end of file