MyNixOS website logo
option

services.stash-clipboard.filterFile

Stash can be configured to avoid storing clipboard entries that match a sensitive pattern, using a regular expression. The file set here should contain your regex pattern (no quotes).

Example regex to block common password patterns:

  • (password|secret|api[_-]?key|token)[=: ]+[^\s]+
Declarations
Type
string
Default
""
Example
"/etc/stash/clipboard_filter"