nixos/networkmanager: restart dispatcher when nameservers change
Without this, you can change the list of appended or prepended nameservers in your NetworkManager config, and nixos-rebuild doesn't cause those changes to come into effect.
This commit is contained in:
parent
2da253a7de
commit
5de2e78016
|
@ -451,7 +451,7 @@ in {
|
||||||
|
|
||||||
systemd.services.NetworkManager-dispatcher = {
|
systemd.services.NetworkManager-dispatcher = {
|
||||||
wantedBy = [ "network.target" ];
|
wantedBy = [ "network.target" ];
|
||||||
restartTriggers = [ configFile ];
|
restartTriggers = [ configFile overrideNameserversScript ];
|
||||||
|
|
||||||
# useful binaries for user-specified hooks
|
# useful binaries for user-specified hooks
|
||||||
path = [ pkgs.iproute pkgs.utillinux pkgs.coreutils ];
|
path = [ pkgs.iproute pkgs.utillinux pkgs.coreutils ];
|
||||||
|
|
Loading…
Reference in a new issue