summary refs log tree commit diff
path: root/nixos/modules/services/networking/dhcpcd.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-02-02 18:33:34 +0100
committerGitHub <noreply@github.com>2020-02-02 18:33:34 +0100
commitc2d2c2d0cabea4dd4be9f51a0be9469d886a18be (patch)
treed7136f618a0197cde8a770af41a0e7989d8d698b /nixos/modules/services/networking/dhcpcd.nix
parenta89c1b543446239903ab5c38fa04edb79fed28d5 (diff)
parent51d18215095368b5ec7fb701987d4428df609467 (diff)
downloadnixpkgs-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar
nixpkgs-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.gz
nixpkgs-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.bz2
nixpkgs-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.lz
nixpkgs-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.xz
nixpkgs-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.tar.zst
nixpkgs-c2d2c2d0cabea4dd4be9f51a0be9469d886a18be.zip
Merge pull request #72931 from Ma27/restart-dhcp-on-exit-hook-change
nixos/dhcpcd: restart dhcpcd if exit hook changed
Diffstat (limited to 'nixos/modules/services/networking/dhcpcd.nix')
-rw-r--r--nixos/modules/services/networking/dhcpcd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix
index 6972c833cc5..f476b147a57 100644
--- a/nixos/modules/services/networking/dhcpcd.nix
+++ b/nixos/modules/services/networking/dhcpcd.nix
@@ -190,6 +190,8 @@ in
         before = [ "network-online.target" ];
         after = [ "systemd-udev-settle.service" ];
 
+        restartTriggers = [ exitHook ];
+
         # Stopping dhcpcd during a reconfiguration is undesirable
         # because it brings down the network interfaces configured by
         # dhcpcd.  So do a "systemctl restart" instead.