From 80b5bc945ae28e9bb500c82c17d6bf5b0434f1af Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Wed, 29 May 2024 13:24:29 -0700 Subject: Update sops-nix naming and config variable usage --- hosts/common/optional/services/kea.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hosts/common/optional/services/kea.nix') 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}" ]; }; }; } -- cgit v1.2.3