Skip to content

Commit

Permalink
Don't stop systemd-{networkd,resolved,udevd} on config switch (#372196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco authored Jan 8, 2025
2 parents 6b773a1 + ad55e1a commit 84d88b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions nixos/modules/services/hardware/udev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ in
systemd.services.systemd-udevd = {
restartTriggers = [ config.environment.etc."udev/rules.d".source ];
notSocketActivated = true;
stopIfChanged = false;
};
};

Expand Down
1 change: 1 addition & 0 deletions nixos/modules/system/boot/networkd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2902,6 +2902,7 @@ let
];
aliases = [ "dbus-org.freedesktop.network1.service" ];
notSocketActivated = true;
stopIfChanged = false;
};

networking.iproute2 = mkIf (cfg.config.addRouteTablesToIPRoute2 && cfg.config.routeTables != { }) {
Expand Down
3 changes: 2 additions & 1 deletion nixos/modules/system/boot/resolved.nix
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ in
systemd.services.systemd-resolved = {
wantedBy = [ "sysinit.target" ];
aliases = [ "dbus-org.freedesktop.resolve1.service" ];
restartTriggers = [ config.environment.etc."systemd/resolved.conf".source ];
reloadTriggers = [ config.environment.etc."systemd/resolved.conf".source ];
stopIfChanged = false;
};

environment.etc =
Expand Down

0 comments on commit 84d88b4

Please sign in to comment.