nixos/secretsmgr: add the timer unit
This commit is contained in:
parent
b719181dfe
commit
ce698ab382
1 changed files with 10 additions and 0 deletions
|
@ -120,6 +120,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.timers.secretsmgr = {
|
||||||
|
requires = ["vault-agent.service"];
|
||||||
|
after = ["vault-agent.service" "network-online.target"];
|
||||||
|
|
||||||
|
timerConfig = {
|
||||||
|
OnActiveSec = "30";
|
||||||
|
OnUnitInactiveSec = "30min";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /var/lib/acme 0711 secretsmgr secretsmgr - -"
|
"d /var/lib/acme 0711 secretsmgr secretsmgr - -"
|
||||||
"d /var/lib/secretsmgr 0711 secretsmgr secretsmgr - -"
|
"d /var/lib/secretsmgr 0711 secretsmgr secretsmgr - -"
|
||||||
|
|
Loading…
Reference in a new issue