This commit is contained in:
cy 2024-12-26 23:40:33 -05:00
parent 64d806a576
commit 60c8a2af3c
3 changed files with 13 additions and 10 deletions

View file

@ -57,7 +57,7 @@
weekly = 4;
monthly = -1;
};
extraPruneArgs = ["--stats"];
extraPruneArgs = [ "--stats" ];
};
};
}

View file

@ -13,7 +13,9 @@
serviceConfig = {
Type = "notify";
ExecStartPre = "/usr/bin/env mkdir -p /mnt/photos";
ExecStart = "${pkgs.rclone}/bin/rclone mount --config ${config.sops.secrets."rclone/config".path} --cache-dir /var/cache/rclone --transfers=32 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G photos: /mnt/photos ";
ExecStart = "${pkgs.rclone}/bin/rclone mount --config ${
config.sops.secrets."rclone/config".path
} --cache-dir /var/cache/rclone --transfers=32 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G photos: /mnt/photos ";
ExecStop = "${pkgs.fuse}/bin/fusermount -u /mnt/photos";
};
};

View file

@ -232,13 +232,13 @@
https://ntfy.cything.io/chunk
'';
prune.keep = {
within = "1d";
daily = 7;
weekly = 4;
monthly = -1;
};
extraPruneArgs = ["--stats"];
prune.keep = {
within = "1d";
daily = 7;
weekly = 4;
monthly = -1;
};
extraPruneArgs = [ "--stats" ];
};
services.btrbk.instances.local = {
@ -258,7 +258,8 @@
};
};
# only create snapshots automatically. backups are triggered manually
systemd.services."btrbk-local".serviceConfig.ExecStart = lib.mkForce "${pkgs.btrbk}/bin/btrbk -c /etc/btrbk/local.conf snapshot";
systemd.services."btrbk-local".serviceConfig.ExecStart =
lib.mkForce "${pkgs.btrbk}/bin/btrbk -c /etc/btrbk/local.conf snapshot";
programs.steam.enable = true;