mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
hosts/plover: add periodic cleanup to Gitea dumps
This commit is contained in:
parent
3452ccf8d8
commit
15722347eb
@ -431,6 +431,13 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Disk space is always assumed to be limited so we're really only limited with 2 dumps.
|
||||||
|
systemd.services.gitea-dump.serviceConfig = {
|
||||||
|
ExecStartPre = pkgs.writeShellScript "gitea-dump-limit" ''
|
||||||
|
find ${config.services.gitea.dump.backupDir} -mtime 14 -maxdepth 1 -type f -delete
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# An alternative implementation of Bitwarden written in Rust. The project
|
# An alternative implementation of Bitwarden written in Rust. The project
|
||||||
# being written in Rust is a insta-self-hosting material right there.
|
# being written in Rust is a insta-self-hosting material right there.
|
||||||
services.vaultwarden = {
|
services.vaultwarden = {
|
||||||
|
Loading…
Reference in New Issue
Block a user