Want to add a module for 'trash'

Hello, I want to add a very simple module called programs.trash which would take the following parameters for example:

programs.trash = 
  enable = true;
  fileSystems  = [ "/code" ]; //Empty means all 
  package = [ pkgs.trashcli ];

This would be a very simple program which would do only two things:

  • Install the said package(s)
  • Install a service that would run right after the mount service and create a world writable sticky top level .Trash directory on all the specified partitions.

Is this something that would be accepted?


Because unless you go read the specification on expired freedesktop.org’s cache,

https://webcache.googleusercontent.com/search?q=cache:trfl2D9n7boJ:https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html+&cd=1&hl=zh-CN&ct=clnk&gl=in&client=firefox-b-d you don’t know that your programs refusal to trash a directory is because that directory is on a different partition which doesn’t have a .Trashas defined above. I think something as simple as trash should have simple and predictable behavior and not require one to go read long (or short in this case but through tortuous paths) specs.