MyNixOS website logo

An attribute set of policy definitions to create in ~/.gemini/policies/. The attribute name becomes the filename with .toml extension automatically added. The value can be either an attribute set representing the TOML policy or a path to a TOML file.

Declarations
Type
attribute set of (absolute path or TOML value)
Default
{ }
Example
{
  "my-rules" = {
    rule = [
      {
        toolName = "run_shell_command";
        commandPrefix = "git ";
        decision = "ask_user";
        priority = 100;
      }
    ];
  };
  "other-rules" = ./path/to/rules.toml;
}