Unverified Commit c2853e25 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #258680 from lf-/jade/remove-multiuser-netonline-dep

nixos/systemd: don't require network-online.target for multi-user.target
parents a2373972 1323e311
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -112,6 +112,13 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
- `services.avahi.nssmdns` got split into `services.avahi.nssmdns4` and `services.avahi.nssmdns6` which enable the mDNS NSS switch for IPv4 and IPv6 respectively.
  Since most mDNS responders only register IPv4 addresses, most users want to keep the IPv6 support disabled to avoid long timeouts.

- `multi-user.target` no longer depends on `network-online.target`.
  This will potentially break services that assumed this was the case in the past.
  This was changed for consistency with other distributions as well as improved boot times.

  We have added a warning for services that are
  `after = [ "network-online.target" ]` but do not depend on it (e.g. using `wants`).

- `networking.iproute2.enable` now does not set `environment.etc."iproute2/rt_tables".text`.

  Setting `environment.etc."iproute2/{CONFIG_FILE_NAME}".text` will override the whole configuration file instead of appending it to the upstream configuration file.
+1 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ in
  config = mkIf cfg.enable {
    systemd = {
      services.gmediarender = {
        wants = [ "network-online.target" ];
        after = [ "network-online.target" ];
        wantedBy = [ "multi-user.target" ];
        description = "gmediarender server daemon";
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ in
  config = mkIf cfg.enable {
    systemd.services.jmusicbot = {
      wantedBy = [ "multi-user.target" ];
      wants = [ "network-online.target" ];
      after = [ "network-online.target" ];
      description = "Discord music bot that's easy to set up and run yourself!";
      serviceConfig = mkMerge [{
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ in

    systemd.services.spotifyd = {
      wantedBy = [ "multi-user.target" ];
      wants = [ "network-online.target" ];
      after = [ "network-online.target" "sound.target" ];
      description = "spotifyd, a Spotify playing daemon";
      environment.SHELL = "/bin/sh";
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ in {
      description = "Standalone MPD Web GUI written in C";

      wantedBy = [ "multi-user.target" ];
      wants = [ "network-online.target" ];
      after = [ "network-online.target" ];

      serviceConfig = {
Loading