MyNixOS website logo
option

programs.pay-respects.runtimeRules

List of rules to be added to /etc/xdg/pay-respects/rules. pay-respects will read the contents of these generated rules to recommend command corrections. Each rule module should start with the command attribute that specifies the command name. See the upstream documentation for more information.

Declarations
Type
list of (TOML value)
Default
[ ]
Example
[
  {
    command = "xl";
    match_err = [
      {
        pattern = [
          "Permission denied"
        ];
        suggest = [
          ''
            #[executable(sudo), !cmd_contains(sudo), err_contains(libxl: error:)]
            sudo {{command}}
          ''
        ];
      }
    ];
  }
];