mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
sops: restructure secrets files
This commit is contained in:
parent
8561f6381b
commit
d14732b063
10 changed files with 58 additions and 45 deletions
|
|
@ -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 _ /)
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue