add borg prune
This commit is contained in:
parent
c748ff8608
commit
958a3367ba
1 changed files with 8 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
services.sunshine = {
|
services.sunshine = {
|
||||||
package = patched.sunshine;
|
package = patched_pkgs.sunshine;
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
capSysAdmin = true;
|
capSysAdmin = true;
|
||||||
|
@ -57,6 +57,13 @@
|
||||||
encryption.mode = "repokey-blake2";
|
encryption.mode = "repokey-blake2";
|
||||||
encryption.passCommand = "cat ${config.age.secrets.borg.path}";
|
encryption.passCommand = "cat ${config.age.secrets.borg.path}";
|
||||||
compression = "auto,zstd";
|
compression = "auto,zstd";
|
||||||
|
prune.keep = {
|
||||||
|
within = "1d";
|
||||||
|
daily = 10;
|
||||||
|
weekly = 4;
|
||||||
|
monthly = 2;
|
||||||
|
};
|
||||||
|
readWritePaths = [ "/mnt/NAS-backup/insertpclinux-insert" ];
|
||||||
repo = "/mnt/NAS-backup/insertpclinux-insert";
|
repo = "/mnt/NAS-backup/insertpclinux-insert";
|
||||||
user = "insert";
|
user = "insert";
|
||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
|
|
Loading…
Reference in a new issue