using hooks url in sops

This commit is contained in:
Richie Cahill
2024-07-07 19:47:11 -04:00
committed by Alice Huston
parent bf4c08c81b
commit 023661129c
3 changed files with 23 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{ inputs, ... }:
{ config, inputs, ... }:
{
systemd = {
services.startup_validation = {
@ -6,7 +6,7 @@
description = "validates startup";
serviceConfig = {
Type = "oneshot";
Environment = "WEBHOOK_URL=test";
Environment = config.sops.secrets."server-validation/webhook".path;
ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeevesjr";
};
};
@ -18,4 +18,8 @@
};
};
};
sops = {
defaultSopsFile = ./secrets.yaml;
secrets."server-validation/webhook".owner = "root";
};
}