aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-05-29 13:24:29 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-05-29 13:24:29 -0700
commit80b5bc945ae28e9bb500c82c17d6bf5b0434f1af (patch)
treeac2aa59fe6979bc36f93489df658b238271e3c9f /hosts/common/optional
parent9e197ab74840dac3c18b8ed404ed6c50664fa3d5 (diff)
downloadnix-80b5bc945ae28e9bb500c82c17d6bf5b0434f1af.tar
nix-80b5bc945ae28e9bb500c82c17d6bf5b0434f1af.tar.gz
nix-80b5bc945ae28e9bb500c82c17d6bf5b0434f1af.tar.bz2
nix-80b5bc945ae28e9bb500c82c17d6bf5b0434f1af.tar.lz
nix-80b5bc945ae28e9bb500c82c17d6bf5b0434f1af.tar.xz
nix-80b5bc945ae28e9bb500c82c17d6bf5b0434f1af.tar.zst
nix-80b5bc945ae28e9bb500c82c17d6bf5b0434f1af.zip
Update sops-nix naming and config variable usage
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}" ];
};
};
}