diff options
-rw-r--r-- | hosts/common/optional/services/kea.nix | 9 |
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"; + }; + }; } |