aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/services/kea.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/common/optional/services/kea.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/hosts/common/optional/services/kea.nix b/hosts/common/optional/services/kea.nix
index a5db4d6..e88ec88 100644
--- a/hosts/common/optional/services/kea.nix
+++ b/hosts/common/optional/services/kea.nix
@@ -1,16 +1,16 @@
-{ lib, pkgs, ... }:
+{ config, lib, pkgs, ... }:
{
services.kea.dhcp4 = {
- configFile = "/run/secrets/kea-dhcp4.conf";
+ configFile = config.sops.secrets.kea-dhcp4_conf.path;
enable = true;
};
systemd.services.kea-dhcp4-server = {
serviceConfig = {
ExecStart = lib.mkForce ''
- ${pkgs.kea}/bin/kea-dhcp4 -c ''${CREDENTIALS_DIRECTORY}/kea-dhcp4.conf
+ ${pkgs.kea}/bin/kea-dhcp4 -c ''${CREDENTIALS_DIRECTORY}/kea-dhcp4_conf
'';
- LoadCredential = "kea-dhcp4.conf:/run/secrets/kea-dhcp4.conf";
+ LoadCredential = [ "kea-dhcp4_conf:${config.sops.secrets.kea-dhcp4_conf.path}" ];
};
};
}