programs.pay-respects.rules
Runtime rule files written to
$XDG_CONFIG_HOME/pay-respects/rules/
Attribute names map to filenames. For example, setting rules.cargo = { ... };
creates $XDG_CONFIG_HOME/pay-respects/rules/cargo.toml.
The filename must match the command name, except for _PR_GENERAL.
See https://github.com/iffse/pay-respects/blob/main/rules.md for runtime rule syntax and behavior.
Note that these rules are only applied when the runtime-rules module is
available to pay-respects.
- Type
attribute set of (TOML value)- Default
{ }- Example
{ cargo = { command = "cargo"; match_err = [ { pattern = [ "run `cargo init` to initialize a new rust project" ]; suggest = [ "cargo init" ]; } ]; }; _PR_GENERAL = { match_err = [ { pattern = [ "permission denied" ]; suggest = [ "#[executable(sudo), !cmd_contains(sudo)]\nsudo {{command}}" ]; } ]; }; }- Declared
- <home-manager/modules/programs/pay-respects.nix>