sops: restructure secrets files

This commit is contained in:
SebastianStork 2025-07-20 19:56:52 +02:00
parent 8561f6381b
commit d14732b063
10 changed files with 58 additions and 45 deletions

View file

@ -22,7 +22,7 @@ in
};
config = lib.mkIf (backupsWithHealthchecks != { }) {
sops.secrets."healthchecks-ping-key" = { };
sops.secrets."healthchecks/ping-key" = { };
systemd.services = lib.mkMerge [
{
@ -32,7 +32,7 @@ in
scriptArgs = "%i";
script = ''
${lib.getExe pkgs.curl} --fail --silent --show-error --max-time 10 --retry 5 https://hc-ping.com/$(cat ${
config.sops.secrets."healthchecks-ping-key".path
config.sops.secrets."healthchecks/ping-key".path
})/$(echo $1 | tr _ /)
'';
};