diff --git a/modules/nixos/applications/nautilus.nix b/modules/nixos/applications/nautilus.nix index 89138f5..cea607e 100644 --- a/modules/nixos/applications/nautilus.nix +++ b/modules/nixos/applications/nautilus.nix @@ -40,6 +40,7 @@ defaultApplications."inode/directory" = lib.mkBefore [ "org.gnome.Nautilus.desktop" ]; }; + }; # # Set default for opening directories @@ -50,6 +51,13 @@ # lib.mkForce [ "org.gnome.Nautilus.desktop" ]; # }; + # Delete Trash files older than 1 week + systemd.user.services.empty-trash = { + description = "Empty Trash on a regular basis"; + wantedBy = [ "default.target" ]; + script = "${pkgs.trash-cli}/bin/trash-empty 7"; + }; + }; }