diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-05-29 01:54:58 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-05-29 01:54:58 -0700 |
commit | d8a9a1c5fb1906dbba6538fc2975768bcf5ba983 (patch) | |
tree | 78ee24e6ca8f262863c02758780c5c9ecfa4f3c3 /hosts/common | |
parent | f0e9c1c4703a849be3d0ce1a150a56fec4655af9 (diff) | |
download | nix-d8a9a1c5fb1906dbba6538fc2975768bcf5ba983.tar nix-d8a9a1c5fb1906dbba6538fc2975768bcf5ba983.tar.gz nix-d8a9a1c5fb1906dbba6538fc2975768bcf5ba983.tar.bz2 nix-d8a9a1c5fb1906dbba6538fc2975768bcf5ba983.tar.lz nix-d8a9a1c5fb1906dbba6538fc2975768bcf5ba983.tar.xz nix-d8a9a1c5fb1906dbba6538fc2975768bcf5ba983.tar.zst nix-d8a9a1c5fb1906dbba6538fc2975768bcf5ba983.zip |
Fix Kea to use sops-nix
Diffstat (limited to 'hosts/common')
-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"; + }; + }; } |