style: change rec
to let in
This commit is contained in:
parent
115a2545cc
commit
b31362656d
@ -9,7 +9,12 @@
|
|||||||
|
|
||||||
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 =
|
||||||
|
let
|
||||||
|
cfg = config.services.rustic.backups;
|
||||||
|
label = "vps-containers";
|
||||||
|
in
|
||||||
|
{
|
||||||
vps-backup = {
|
vps-backup = {
|
||||||
backup = true;
|
backup = true;
|
||||||
prune = false;
|
prune = false;
|
||||||
@ -20,11 +25,7 @@
|
|||||||
OnCalendar = "01:00";
|
OnCalendar = "01:00";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
settings =
|
settings = {
|
||||||
let
|
|
||||||
label = "vps-containers";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
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;
|
||||||
@ -64,7 +65,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
vps-prune = vps-backup // {
|
vps-prune = cfg.vps-backup // {
|
||||||
backup = false;
|
backup = false;
|
||||||
prune = true;
|
prune = true;
|
||||||
createWrapper = false;
|
createWrapper = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user