feat: added auto aproval for nixos mcp server settings

This commit is contained in:
Leyla Becker 2025-10-02 12:55:49 -05:00
parent d4615fc435
commit 21edda5fe6
3 changed files with 23 additions and 2 deletions

View file

@ -78,4 +78,5 @@ nix multi user, multi system, configuration with `sops` secret management, `home
- fix polycule package
- fix panoramax package
- actual instance
- intergrade radarr, sonarr, and bazarr
- intergrade radarr, sonarr, and bazarr
- claude code MCP servers should bundle node with them so they work in all environments

View file

@ -71,7 +71,18 @@ in {
claudeDev = lib.mkIf ai-tooling-enabled {
enable = true;
mcp = {
nixos.enable = true;
nixos = {
enable = true;
autoApprove = {
nixos_search = true;
nixos_info = true;
home_manager_search = true;
home_manager_info = true;
darwin_search = true;
darwin_info = true;
nixos_flakes_search = true;
};
};
eslint = {
enable = true;
autoApprove = {

View file

@ -72,6 +72,15 @@ in {
mcp = {
nixos = {
enable = lib.mkEnableOption "enable NixOS MCP server for Claude Dev";
autoApprove = {
nixos_search = lib.mkEnableOption "should the nixos_search tool be auto approved for the nixos MCP server";
nixos_info = lib.mkEnableOption "should the nixos_info tool be auto approved for the nixos MCP server";
home_manager_search = lib.mkEnableOption "should the home_manager_search tool be auto approved for the nixos MCP server";
home_manager_info = lib.mkEnableOption "should the home_manager_info tool be auto approved for the nixos MCP server";
darwin_search = lib.mkEnableOption "should the darwin_search tool be auto approved for the nixos MCP server";
darwin_info = lib.mkEnableOption "should the darwin_info tool be auto approved for the nixos MCP server";
nixos_flakes_search = lib.mkEnableOption "should the nixos_flakes_search tool be auto approved for the nixos MCP server";
};
};
eslint = {
enable = lib.mkEnableOption "enable ESLint MCP server for Claude Dev";