diff options
Diffstat (limited to '')
| -rw-r--r-- | modules/git/cgit.nix | 2 | ||||
| -rw-r--r-- | modules/timer-clean-backups.nix | 23 |
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/git/cgit.nix b/modules/git/cgit.nix index 974b615..2622e2e 100644 --- a/modules/git/cgit.nix +++ b/modules/git/cgit.nix @@ -37,6 +37,8 @@ in { clone-prefix = "https://git.compromyse.xyz"; clone-url = "https://git.compromyse.xyz/$CGIT_REPO_URL"; + sections = "flagship android me cybersecurity server archive"; + "mimetype.gif" = "image/gif"; "mimetype.html" = "text/html"; "mimetype.jpg" = "image/jpeg"; diff --git a/modules/timer-clean-backups.nix b/modules/timer-clean-backups.nix new file mode 100644 index 0000000..208ac6f --- /dev/null +++ b/modules/timer-clean-backups.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: + +{ + systemd.timers."clean-backups" = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnCalendar = "daily"; + Persistent = true; + Unit = "clean-backups.service"; + }; + }; + + systemd.services."clean-backups" = { + script = '' + find $HOME/backups -mtime 7 -delete + ''; + + serviceConfig = { + Type = "oneshot"; + User = "compromyse"; + }; + }; +} |
