From d8a9a1c5fb1906dbba6538fc2975768bcf5ba983 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Wed, 29 May 2024 01:54:58 -0700 Subject: Fix Kea to use sops-nix --- hosts/common/optional/services/kea.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hosts/common/optional/services') 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"; + }; + }; } -- cgit v1.2.3