style: change rec
to let in
This commit is contained in:
parent
115a2545cc
commit
b31362656d
@ -9,22 +9,23 @@
|
|||||||
|
|
||||||
sops.secrets.rustic-vps-pass.sopsFile = secretsDir + /rustic.yaml;
|
sops.secrets.rustic-vps-pass.sopsFile = secretsDir + /rustic.yaml;
|
||||||
sops.secrets.rustic-backups-s3-env.sopsFile = secretsDir + /rustic.yaml;
|
sops.secrets.rustic-backups-s3-env.sopsFile = secretsDir + /rustic.yaml;
|
||||||
services.rustic.backups = rec {
|
services.rustic.backups =
|
||||||
vps-backup = {
|
let
|
||||||
backup = true;
|
cfg = config.services.rustic.backups;
|
||||||
prune = false;
|
label = "vps-containers";
|
||||||
initialize = false;
|
in
|
||||||
pruneOpts = [ "--repack-cacheable-only=false" ];
|
{
|
||||||
environmentFile = config.sops.secrets.rustic-backups-s3-env.path;
|
vps-backup = {
|
||||||
timerConfig = {
|
backup = true;
|
||||||
OnCalendar = "01:00";
|
prune = false;
|
||||||
Persistent = true;
|
initialize = false;
|
||||||
};
|
pruneOpts = [ "--repack-cacheable-only=false" ];
|
||||||
settings =
|
environmentFile = config.sops.secrets.rustic-backups-s3-env.path;
|
||||||
let
|
timerConfig = {
|
||||||
label = "vps-containers";
|
OnCalendar = "01:00";
|
||||||
in
|
Persistent = true;
|
||||||
{
|
};
|
||||||
|
settings = {
|
||||||
repository = {
|
repository = {
|
||||||
repository = "opendal:s3";
|
repository = "opendal:s3";
|
||||||
password-file = config.sops.secrets.rustic-vps-pass.path;
|
password-file = config.sops.secrets.rustic-vps-pass.path;
|
||||||
@ -63,15 +64,15 @@
|
|||||||
keep-monthly = 1;
|
keep-monthly = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
vps-prune = vps-backup // {
|
vps-prune = cfg.vps-backup // {
|
||||||
backup = false;
|
backup = false;
|
||||||
prune = true;
|
prune = true;
|
||||||
createWrapper = false;
|
createWrapper = false;
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "Mon, 02:00";
|
OnCalendar = "Mon, 02:00";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user