programs.pay-respects.runtimeRules
NixOS option
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.
type: list of (TOML value)Default
[ ]
Example
declared in: nixos/modules/programs/pay-respects.nixView source on NixOS/nixpkgs →[
{
command = "xl";
match_err = [
{
pattern = [
"Permission denied"
];
suggest = [
''
#[executable(sudo), !cmd_contains(sudo), err_contains(libxl: error:)]
sudo {{command}}
''
];
}
];
}
];