summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2021-07-31 02:21:19 +0200
committerGitHub <noreply@github.com>2021-07-31 02:21:19 +0200
commitb3b187315bf423a0163b3cfd21df88c9a2620123 (patch)
treef5e9b7ec81c03b4cf3f6d86e35cc09678d62e316 /nixos
parentecc968543c6d2911303f32ad92b354661a0663d9 (diff)
parent3d43cf8f210632818963160d2df01fc64c76769a (diff)
downloadnixpkgs-b3b187315bf423a0163b3cfd21df88c9a2620123.tar
nixpkgs-b3b187315bf423a0163b3cfd21df88c9a2620123.tar.gz
nixpkgs-b3b187315bf423a0163b3cfd21df88c9a2620123.tar.bz2
nixpkgs-b3b187315bf423a0163b3cfd21df88c9a2620123.tar.lz
nixpkgs-b3b187315bf423a0163b3cfd21df88c9a2620123.tar.xz
nixpkgs-b3b187315bf423a0163b3cfd21df88c9a2620123.tar.zst
nixpkgs-b3b187315bf423a0163b3cfd21df88c9a2620123.zip
Merge pull request #131885 from mweinelt/kea
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/kea.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/kea.nix b/nixos/modules/services/networking/kea.nix
index 72773b83a49..b11402204ae 100644
--- a/nixos/modules/services/networking/kea.nix
+++ b/nixos/modules/services/networking/kea.nix
@@ -238,6 +238,10 @@ in
         KEA_PIDFILE_DIR = "/run/kea";
       };
 
+      restartTriggers = [
+        ctrlAgentConfig
+      ];
+
       serviceConfig = {
         ExecStart = "${package}/bin/kea-ctrl-agent -c /etc/kea/ctrl-agent.conf ${lib.escapeShellArgs cfg.dhcp4.extraArgs}";
         KillMode = "process";
@@ -269,6 +273,10 @@ in
         KEA_PIDFILE_DIR = "/run/kea";
       };
 
+      restartTriggers = [
+        dhcp4Config
+      ];
+
       serviceConfig = {
         ExecStart = "${package}/bin/kea-dhcp4 -c /etc/kea/dhcp4-server.conf ${lib.escapeShellArgs cfg.dhcp4.extraArgs}";
         # Kea does not request capabilities by itself
@@ -307,6 +315,10 @@ in
         KEA_PIDFILE_DIR = "/run/kea";
       };
 
+      restartTriggers = [
+        dhcp6Config
+      ];
+
       serviceConfig = {
         ExecStart = "${package}/bin/kea-dhcp6 -c /etc/kea/dhcp6-server.conf ${lib.escapeShellArgs cfg.dhcp6.extraArgs}";
         # Kea does not request capabilities by itself
@@ -343,6 +355,10 @@ in
         KEA_PIDFILE_DIR = "/run/kea";
       };
 
+      restartTriggers = [
+        dhcpDdnsConfig
+      ];
+
       serviceConfig = {
         ExecStart = "${package}/bin/kea-dhcp-ddns -c /etc/kea/dhcp-ddns.conf ${lib.escapeShellArgs cfg.dhcp-ddns.extraArgs}";
         AmbientCapabilites = [