Compare commits
No commits in common. "5a53a7bac44e25d21c0547cc7dd4194b4b0a6deb" and "0d57fb08b162a3f35e77cc580b938b2307695deb" have entirely different histories.
5a53a7bac4
...
0d57fb08b1
3 changed files with 11 additions and 7 deletions
|
@ -3,6 +3,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# ./network-mount.nix
|
./network-mount.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./nvidia-drivers.nix
|
./nvidia-drivers.nix
|
||||||
# ./network-mount.nix
|
./network-mount.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,14 @@
|
||||||
profile.extraExtensions.claudeDev.enable
|
profile.extraExtensions.claudeDev.enable
|
||||||
&& profile.extraExtensions.claudeDev.mcp.nixos.enable
|
&& profile.extraExtensions.claudeDev.mcp.nixos.enable
|
||||||
) (lib.attrValues config.programs.vscode.profiles);
|
) (lib.attrValues config.programs.vscode.profiles);
|
||||||
|
|
||||||
|
mcpServersConfig = lib.mkMerge [
|
||||||
|
(lib.mkIf anyProfileHasMcpNixos {
|
||||||
|
nixos = {
|
||||||
|
command = "${mcp-nixos}/bin/mcp-nixos";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
in {
|
in {
|
||||||
options.programs.vscode.profiles = lib.mkOption {
|
options.programs.vscode.profiles = lib.mkOption {
|
||||||
type = lib.types.attrsOf (lib.types.submodule ({config, ...}: {
|
type = lib.types.attrsOf (lib.types.submodule ({config, ...}: {
|
||||||
|
@ -43,11 +51,7 @@ in {
|
||||||
config = lib.mkIf anyProfileHasMcpNixos {
|
config = lib.mkIf anyProfileHasMcpNixos {
|
||||||
home.file."${config.xdg.configHome}/VSCodium/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json" = {
|
home.file."${config.xdg.configHome}/VSCodium/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json" = {
|
||||||
text = builtins.toJSON {
|
text = builtins.toJSON {
|
||||||
mcpServers = {
|
mcpServers = mcpServersConfig;
|
||||||
nixos = {
|
|
||||||
command = "${mcp-nixos}/bin/mcp-nixos";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
force = true;
|
force = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue