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 = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
# ./network-mount.nix
|
||||
./network-mount.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
./nvidia-drivers.nix
|
||||
# ./network-mount.nix
|
||||
./network-mount.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -15,6 +15,14 @@
|
|||
profile.extraExtensions.claudeDev.enable
|
||||
&& profile.extraExtensions.claudeDev.mcp.nixos.enable
|
||||
) (lib.attrValues config.programs.vscode.profiles);
|
||||
|
||||
mcpServersConfig = lib.mkMerge [
|
||||
(lib.mkIf anyProfileHasMcpNixos {
|
||||
nixos = {
|
||||
command = "${mcp-nixos}/bin/mcp-nixos";
|
||||
};
|
||||
})
|
||||
];
|
||||
in {
|
||||
options.programs.vscode.profiles = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submodule ({config, ...}: {
|
||||
|
@ -43,11 +51,7 @@ in {
|
|||
config = lib.mkIf anyProfileHasMcpNixos {
|
||||
home.file."${config.xdg.configHome}/VSCodium/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json" = {
|
||||
text = builtins.toJSON {
|
||||
mcpServers = {
|
||||
nixos = {
|
||||
command = "${mcp-nixos}/bin/mcp-nixos";
|
||||
};
|
||||
};
|
||||
mcpServers = mcpServersConfig;
|
||||
};
|
||||
force = true;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue