feat(ai): make LM Studio deactivable
This commit is contained in:
@@ -16,6 +16,11 @@ in {
|
|||||||
|
|
||||||
options.home.dev.ai = {
|
options.home.dev.ai = {
|
||||||
enable = mkEnableOption "Enables AI features";
|
enable = mkEnableOption "Enables AI features";
|
||||||
|
lmStudio = mkOption {
|
||||||
|
default = cfg.enable;
|
||||||
|
example = true;
|
||||||
|
description = "Enables LM Studio. Enabled by default when AI is enabled.";
|
||||||
|
};
|
||||||
mcpServers = mkOption {
|
mcpServers = mkOption {
|
||||||
inherit (jsonFormat) type;
|
inherit (jsonFormat) type;
|
||||||
default = {};
|
default = {};
|
||||||
@@ -31,7 +36,7 @@ in {
|
|||||||
ollama.enable = mkDefault cfg.enable;
|
ollama.enable = mkDefault cfg.enable;
|
||||||
opencode.enable = mkDefault cfg.enable;
|
opencode.enable = mkDefault cfg.enable;
|
||||||
};
|
};
|
||||||
packages = [pkgs.lmstudio];
|
packages = lists.optional cfg.lmStudio pkgs.lmstudio;
|
||||||
};
|
};
|
||||||
programs.mcp = mkIf (cfg.mcpServers != {}) {
|
programs.mcp = mkIf (cfg.mcpServers != {}) {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
imports = [../home.nix];
|
imports = [../home.nix];
|
||||||
home = {
|
home = {
|
||||||
cli.nh.flake = "${config.home.homeDirectory}/.dotfiles";
|
cli.nh.flake = "${config.home.homeDirectory}/.dotfiles";
|
||||||
|
dev.ai.lmStudio = false;
|
||||||
desktop.hyprland.host = "gampo";
|
desktop.hyprland.host = "gampo";
|
||||||
phundrak.sshKey.content = builtins.readFile ../keys/id_gampo.pub;
|
phundrak.sshKey.content = builtins.readFile ../keys/id_gampo.pub;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user