add mcps to home-config; +ghostty

This commit is contained in:
m3tm3re
2026-03-14 09:26:13 +01:00
parent 4ae2bb0f48
commit 411c67d2c6
9 changed files with 75 additions and 108 deletions

View File

@@ -52,7 +52,7 @@ in {
set -x NIX_PATH nixpkgs=channel:nixos-unstable set -x NIX_PATH nixpkgs=channel:nixos-unstable
set -x NIX_LOG info set -x NIX_LOG info
set -x WEBKIT_DISABLE_COMPOSITING_MODE 1 set -x WEBKIT_DISABLE_COMPOSITING_MODE 1
set -x TERMINAL kitty set -x TERMINAL ghostty
set -x EDITOR nvim set -x EDITOR nvim
set -x VISUAL zed set -x VISUAL zed
set -x XDG_DATA_HOME $HOME/.local/share set -x XDG_DATA_HOME $HOME/.local/share

View File

@@ -16,7 +16,7 @@ in {
$env.NIX_PATH = "nixpkgs=channel:nixos-unstable" $env.NIX_PATH = "nixpkgs=channel:nixos-unstable"
$env.NIX_LOG = "iunfo" $env.NIX_LOG = "iunfo"
$env.WEBKIT_DISABLE_COMPOSITING_MODE = "1" $env.WEBKIT_DISABLE_COMPOSITING_MODE = "1"
$env.TERMINAL = "kitty" $env.TERMINAL = "ghostty"
$env.EDITOR = "nvim" $env.EDITOR = "nvim"
$env.VISUAL = "zed" $env.VISUAL = "zed"
$env.FZF_DEFAULT_COMMAND = "fd --type f --exclude .git --follow --hidden" $env.FZF_DEFAULT_COMMAND = "fd --type f --exclude .git --follow --hidden"

View File

@@ -2,6 +2,44 @@
imports = [ imports = [
./opencode.nix ./opencode.nix
]; ];
programs.mcp = {
enable = true;
servers = {
Ref = {
command = "sh";
args = ["-c" "REF_API_KEY=$(cat /run/agenix/ref-key) exec bunx ref-tools-mcp@latest"];
};
Anytype = {
command = "sh";
args = ["-c" "OPENAPI_MCP_HEADERS=$(cat /run/agenix/anytype-key) exec bunx @anyproto/anytype-mcp"];
disabled = true;
};
Basecamp = {
command = "/home/m3tam3re/p/AI/Basecamp-MCP-Server/venv/bin/python";
args = ["/home/m3tam3re/p/AI/Basecamp-MCP-Server/basecamp_fastmcp.py"];
env = {
PYTHONPATH = "/home/m3tam3re/p/PYTHON/Basecamp-MCP-Server";
VIRTUAL_ENV = "/home/m3tam3re/p/PYTHON/Basecamp-MCP-Server/venv";
BASECAMP_ACCOUNT_ID = "5996442";
};
disabled = true;
};
Exa = {
command = "sh";
args = ["-c" "EXA_API_KEY=$(cat /run/agenix/exa-key) exec bunx exa-mcp-server@latest tools=web_search_exa"];
};
Outline = {
command = "sh";
args = ["-c" "OUTLINE_API_KEY=$(cat /run/agenix/outline-key) OUTLINE_API_URL=https://wiki.az-gruppe.com/api OUTLINE_DISABLE_DELETE=true exec uv tool run mcp-outline"];
disabled = true;
};
ContextMode = {
command = "sh";
args = ["-c" "exec bunx context-mode@latest"];
};
};
};
home.packages = with pkgs; [ home.packages = with pkgs; [
agenix-cli agenix-cli
alejandra alejandra
@@ -30,6 +68,7 @@
vulkanSupport = true; vulkanSupport = true;
cudaSupport = false; cudaSupport = false;
}) })
pi
alejandra alejandra
sidecar sidecar
tailwindcss tailwindcss

View File

@@ -24,6 +24,7 @@
programs.opencode = { programs.opencode = {
enable = true; enable = true;
enableMcpIntegration = true;
settings = { settings = {
theme = "opencode"; theme = "opencode";
plugin = ["oh-my-opencode" "opencode-antigravity-auth@beta"]; plugin = ["oh-my-opencode" "opencode-antigravity-auth@beta"];
@@ -36,57 +37,6 @@
extensions = [".nix"]; extensions = [".nix"];
}; };
}; };
mcp = {
Ref = {
type = "local";
command = [
"sh"
"-c"
"REF_API_KEY=$(cat /run/agenix/ref-key) exec bunx ref-tools-mcp@latest"
];
enabled = true;
};
Anytype = {
type = "local";
command = [
"sh"
"-c"
"OPENAPI_MCP_HEADERS=$(cat /run/agenix/anytype-key) exec bunx @anyproto/anytype-mcp"
];
enabled = false;
};
Basecamp = {
type = "local";
command = [
"/home/m3tam3re/p/AI/Basecamp-MCP-Server/venv/bin/python"
"/home/m3tam3re/p/AI/Basecamp-MCP-Server/basecamp_fastmcp.py"
];
environment = {
PYTHONPATH = "/home/m3tam3re/p/PYTHON/Basecamp-MCP-Server";
VIRTUAL_ENV = "/home/m3tam3re/p/PYTHON/Basecamp-MCP-Server/venv";
BASECAMP_ACCOUNT_ID = "5996442";
};
enabled = false;
};
Exa = {
type = "local";
command = [
"sh"
"-c"
"EXA_API_KEY=$(cat /run/agenix/exa-key) exec bunx exa-mcp-server@latest tools=web_search_exa"
];
enabled = true;
};
Outline = {
type = "local";
command = [
"sh"
"-c"
"OUTLINE_API_KEY=$(cat /run/agenix/outline-key) OUTLINE_API_URL=https://wiki.az-gruppe.com/api OUTLINE_DISABLE_DELETE=true exec uv tool run mcp-outline"
];
enabled = false;
};
};
provider = { provider = {
litellm = { litellm = {
npm = "@ai-sdk/openai-compatible"; npm = "@ai-sdk/openai-compatible";

View File

@@ -48,7 +48,7 @@
home.sessionVariables = { home.sessionVariables = {
WEBKIT_DISABLE_COMPOSITING_MODE = "1"; WEBKIT_DISABLE_COMPOSITING_MODE = "1";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
TERMINAL = "kitty"; TERMINAL = "ghostty";
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
XDG_CURRENT_DESKTOP = "Hyprland"; XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";
@@ -58,64 +58,42 @@
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
programs.kitty = { programs.ghostty = {
enable = true; enable = true;
shellIntegration = {
enableFishIntegration = true; enableFishIntegration = true;
enableBashIntegration = true; enableBashIntegration = true;
};
font = {name = "Fira Code";};
settings = { settings = {
copy_on_select = "yes"; font-family = "Fira Code";
copy-on-select = true;
# Base colors # Base colors from nix-colors
foreground = "#${config.colorScheme.palette.base05}"; foreground = "#${config.colorScheme.palette.base05}";
background = "#${config.colorScheme.palette.base00}"; background = "#${config.colorScheme.palette.base00}";
selection_foreground = "#${config.colorScheme.palette.base07}"; selection-foreground = "#${config.colorScheme.palette.base07}";
selection_background = "#${config.colorScheme.palette.base02}"; selection-background = "#${config.colorScheme.palette.base02}";
# URL color
url_color = "#${config.colorScheme.palette.base08}";
# Cursor # Cursor
cursor = "#${config.colorScheme.palette.base05}"; cursor-color = "#${config.colorScheme.palette.base05}";
cursor_text_color = "#${config.colorScheme.palette.base00}";
# Colors 0-15 # Palette (16 colors)
color0 = "#${config.colorScheme.palette.base01}"; palette = [
color8 = "#${config.colorScheme.palette.base03}"; "0=#${config.colorScheme.palette.base01}"
"1=#${config.colorScheme.palette.base08}"
color1 = "#${config.colorScheme.palette.base08}"; "2=#${config.colorScheme.palette.base0B}"
color9 = "#${config.colorScheme.palette.base08}"; "3=#${config.colorScheme.palette.base0A}"
"4=#${config.colorScheme.palette.base0D}"
color2 = "#${config.colorScheme.palette.base0B}"; "5=#${config.colorScheme.palette.base0E}"
color10 = "#${config.colorScheme.palette.base0B}"; "6=#${config.colorScheme.palette.base0C}"
"7=#${config.colorScheme.palette.base05}"
color3 = "#${config.colorScheme.palette.base0A}"; "8=#${config.colorScheme.palette.base03}"
color11 = "#${config.colorScheme.palette.base0A}"; "9=#${config.colorScheme.palette.base08}"
"10=#${config.colorScheme.palette.base0B}"
color4 = "#${config.colorScheme.palette.base0D}"; "11=#${config.colorScheme.palette.base0A}"
color12 = "#${config.colorScheme.palette.base0D}"; "12=#${config.colorScheme.palette.base0D}"
"13=#${config.colorScheme.palette.base0E}"
color5 = "#${config.colorScheme.palette.base0E}"; "14=#${config.colorScheme.palette.base0C}"
color13 = "#${config.colorScheme.palette.base0E}"; "15=#${config.colorScheme.palette.base07}"
];
color6 = "#${config.colorScheme.palette.base0C}";
color14 = "#${config.colorScheme.palette.base0C}";
color7 = "#${config.colorScheme.palette.base05}";
color15 = "#${config.colorScheme.palette.base07}";
# Tab colors
active_tab_foreground = "#${config.colorScheme.palette.base00}";
active_tab_background = "#${config.colorScheme.palette.base05}";
inactive_tab_foreground = "#${config.colorScheme.palette.base05}";
inactive_tab_background = "#${config.colorScheme.palette.base01}";
# Mark colors
mark1_foreground = "#${config.colorScheme.palette.base00}";
mark1_background = "#${config.colorScheme.palette.base08}";
}; };
}; };

View File

@@ -155,7 +155,7 @@ in {
"border_color rgb(ffffff), match:xwayland 1" "border_color rgb(ffffff), match:xwayland 1"
]; ];
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
"$terminal" = "kitty"; "$terminal" = "ghostty";
bind = [ bind = [
"$mainMod, return, exec, $terminal nu -c zellij-ps" "$mainMod, return, exec, $terminal nu -c zellij-ps"

View File

@@ -17,7 +17,6 @@ in {
# makemkv # makemkv
# mediainfo # mediainfo
amf amf
blueberry
ffmpeg_6-full ffmpeg_6-full
gimp gimp
gst_all_1.gstreamer gst_all_1.gstreamer

View File

@@ -23,7 +23,7 @@ in {
enable = true; enable = true;
package = rofi-pass-wayland; package = rofi-pass-wayland;
}; };
terminal = "\${pkgs.kitty}/bin/kitty"; terminal = "${pkgs.ghostty}/bin/ghostty";
font = "Fira Code"; font = "Fira Code";
extraConfig = { extraConfig = {
show-icons = true; show-icons = true;
@@ -199,7 +199,7 @@ in {
args = ""; args = "";
}; };
}; };
terminal = pkgs.kitty; terminal = pkgs.ghostty;
terminalCommand = "opencode %a"; terminalCommand = "opencode %a";
}; };
}; };

View File

@@ -21,6 +21,7 @@ in {
}; };
}; };
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
systemd.services.virt-secret-init-encryption.enable = false;
environment = { environment = {
systemPackages = [pkgs.qemu]; systemPackages = [pkgs.qemu];
}; };