forked from colonelpanic/dotfiles
[NixOS] Allow retries of import key
This commit is contained in:
parent
fa18612685
commit
723fc19aec
@ -11,11 +11,16 @@
|
|||||||
Unit = {
|
Unit = {
|
||||||
Description = "Import GPG private key";
|
Description = "Import GPG private key";
|
||||||
After = [ "agenix.service" ];
|
After = [ "agenix.service" ];
|
||||||
|
# 3 total retries
|
||||||
|
StartLimitIntervalSec = 0;
|
||||||
|
StartLimitBurst = 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
Install.WantedBy = [ "default.target" ];
|
Install.WantedBy = [ "default.target" ];
|
||||||
Service = {
|
Service = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
RestartSec = 5;
|
||||||
|
Restart = "onfailure";
|
||||||
ExecStart =
|
ExecStart =
|
||||||
let path = config.age.secrets.gpg-keys.path;
|
let path = config.age.secrets.gpg-keys.path;
|
||||||
in "${pkgs.gnupg}/bin/gpg --batch --import ${path}";
|
in "${pkgs.gnupg}/bin/gpg --batch --import ${path}";
|
||||||
|
Loading…
Reference in New Issue
Block a user