style: change rec to let in

This commit is contained in:
Dmitriy Kholkin 2025-03-10 20:21:27 +03:00
parent 115a2545cc
commit b31362656d
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -9,7 +9,12 @@
sops.secrets.rustic-vps-pass.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 = {
backup = true;
prune = false;
@ -20,11 +25,7 @@
OnCalendar = "01:00";
Persistent = true;
};
settings =
let
label = "vps-containers";
in
{
settings = {
repository = {
repository = "opendal:s3";
password-file = config.sops.secrets.rustic-vps-pass.path;
@ -64,7 +65,7 @@
};
};
};
vps-prune = vps-backup // {
vps-prune = cfg.vps-backup // {
backup = false;
prune = true;
createWrapper = false;