From 2370696dff55228ca605ee74074b00715573e2b7 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 16 Dec 2024 18:12:47 +0100 Subject: [PATCH 1/2] nixos/systemd: don't require network-online.target for multi-user.target v2 This is another attempt at 62f30634 after the original change was reverted in 0d85bf0e because NetworkManager and other tests were broken. --- nixos/modules/system/boot/systemd.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 9260bc22b13e..66241b6382bc 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -675,7 +675,6 @@ in systemd.services.systemd-udev-settle.restartIfChanged = false; # Causes long delays in nixos-rebuild systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true; systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true; - systemd.targets.network-online.wantedBy = [ "multi-user.target" ]; systemd.services.systemd-importd.environment = proxy_env; systemd.services.systemd-pstore.wantedBy = [ "sysinit.target" ]; # see #81138 From 104c5a6283c8dd1f0e55c9568648139072b7c4f5 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 17 Dec 2024 21:53:24 +0100 Subject: [PATCH 2/2] nixos/release-notes: warn multi-user no longer wants network-online --- nixos/doc/manual/release-notes/rl-2505.section.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index f3a58367e055..4a1436732971 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -85,6 +85,16 @@ - `gkraken` software and `hardware.gkraken.enable` option have been removed, use `coolercontrol` via `programs.coolercontrol.enable` option instead. +- To avoid delaying user logins unnecessarily the `multi-user.target` is no longer ordered after `network-online.target`. + System services requiring a connection to start correctly must explicitly state so, i.e. + ```nix + systemd.services. = { + wants = [ "network-online.target" ]; + after = [ "network-online.target" ]; + }; + ``` + This changed follows a deprecation period of one year started in NixOS 24.05 (see [PR #283818](https://github.com/NixOS/nixpkgs/pull/283818)). + - `nodePackages.ganache` has been removed, as the package has been deprecated by upstream. - `containerd` has been updated to v2, which contains breaking changes. See the [containerd