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:
Langston Barrett 2020-04-15 13:50:51 -07:00
parent 2da253a7de
commit 5de2e78016

View file

@ -451,7 +451,7 @@ in {
systemd.services.NetworkManager-dispatcher = {
wantedBy = [ "network.target" ];
restartTriggers = [ configFile ];
restartTriggers = [ configFile overrideNameserversScript ];
# useful binaries for user-specified hooks
path = [ pkgs.iproute pkgs.utillinux pkgs.coreutils ];