all repos — archive/nixos-configuration @ dd4e45818a2a98272851210254e5feacdbdf7c55

Superseded by nixfiles

UI: auto-clear old trash items weekly

Alan Pearce
commit

dd4e45818a2a98272851210254e5feacdbdf7c55

parent

e6e92c12ae75663c4cc45502031056d7b94ea8d5

1 file changed, 17 insertions(+), 0 deletions(-)

jump to
M modules/user-interface.nixmodules/user-interface.nix
@@ -86,6 +86,23 @@ OnActiveSec = "1 min";
}; }; + systemd.user.services.trash-clean = { + path = with pkgs; [ trash-cli ]; + description = "Remove old files from FreeDesktop.org trash"; + + serviceConfig = { + Type = "oneshot"; + }; + script = "trash-empty 30"; + }; + systemd.user.timers.trash-clean = { + wantedBy = [ "default.target" ]; + timerConfig = { + OnCalendar = "weekly"; + Persistent = true; + }; + }; + environment.variables = { # This is required so that GTK applications launched from Emacs # get properly themed: