aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/services
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/common/optional/services')
-rw-r--r--hosts/common/optional/services/kea.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/common/optional/services/kea.nix b/hosts/common/optional/services/kea.nix
index 1c68118..2ce098a 100644
--- a/hosts/common/optional/services/kea.nix
+++ b/hosts/common/optional/services/kea.nix
@@ -3,4 +3,13 @@
configFile = "/run/secrets/kea-dhcp4.conf";
enable = true;
};
+
+ systemd.services.kea-dhcp4-server = {
+ serviceConfig = {
+ ExecStart = ''
+ ${pkgs.kea}/bin/kea-dhcp4 -c ''${CREDENTIALS_DIRECTORY}/kea-dhcp4.conf
+ '';
+ LoadCredential = "kea-dhcp4.conf:/run/secrets/kea-dhcp4.conf";
+ };
+ };
}