summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorRobert Gerus <ar@bash.org.pl>2021-12-27 04:41:20 +0100
committerRobert Gerus <ar@bash.org.pl>2021-12-27 04:41:20 +0100
commit6faa7ad3fc2fe556324c225bd704fef3a7fb2003 (patch)
tree9dc2e871481a104403261dba4d03dcbf6d5d2c3c /nixos
parent7623b1fa829ea7f0418b764fafb1043ab3b1e3ba (diff)
nixos/kea: fixes for the systemd units
Fix a typo in the kea-dhcp-ddns-server unit definition, and add a KEA_LOCKFILE_DIR environment variable without which kea daemons try to access a lockfile under /var/run/kea path, which is prevented by systemd's ProtectSystem (or one of the other Protect*) mechanism. kea-dhcp-ddns-server doesn't react to updates from dhcp4 server at all without it.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/kea.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/kea.nix b/nixos/modules/services/networking/kea.nix
index b11402204aec..4da47f575f79 100644
--- a/nixos/modules/services/networking/kea.nix
+++ b/nixos/modules/services/networking/kea.nix
@@ -236,6 +236,7 @@ in
environment = {
KEA_PIDFILE_DIR = "/run/kea";
+ KEA_LOCKFILE_DIR = "/run/kea";
};
restartTriggers = [
@@ -271,6 +272,7 @@ in
environment = {
KEA_PIDFILE_DIR = "/run/kea";
+ KEA_LOCKFILE_DIR = "/run/kea";
};
restartTriggers = [
@@ -313,6 +315,7 @@ in
environment = {
KEA_PIDFILE_DIR = "/run/kea";
+ KEA_LOCKFILE_DIR = "/run/kea";
};
restartTriggers = [
@@ -353,6 +356,7 @@ in
environment = {
KEA_PIDFILE_DIR = "/run/kea";
+ KEA_LOCKFILE_DIR = "/run/kea";
};
restartTriggers = [
@@ -361,7 +365,7 @@ in
serviceConfig = {
ExecStart = "${package}/bin/kea-dhcp-ddns -c /etc/kea/dhcp-ddns.conf ${lib.escapeShellArgs cfg.dhcp-ddns.extraArgs}";
- AmbientCapabilites = [
+ AmbientCapabilities = [
"CAP_NET_BIND_SERVICE"
];
CapabilityBoundingSet = [