feat(aichat): add roles support and update model names
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-08-20 01:05:28 +05:30
parent c2ab1a4cd1
commit c990dc60cd
2 changed files with 24 additions and 4 deletions

View File

@@ -75,7 +75,11 @@ in {
settings = lib.mkOption {
type = yamlFormat.type;
description = "Options";
description = "Settings";
};
roles = lib.mkOption {
type = lib.types.attrsOf lib.types.str;
description = "Roles for the AI chat clients";
};
};
};
@@ -102,7 +106,11 @@ in {
programs.zsh.initExtra = mkIf cfg.enableZshIntegration zshIntegration;
programs.nushell.extraConfig = mkIf cfg.enableNushellIntegration nuIntegration;
xdg.configFile."aichat/config.yaml".source =
yamlFormat.generate "config.yaml" cfg.settings;
xdg.configFile =
{
"aichat/config.yaml".source =
yamlFormat.generate "config.yaml" cfg.settings;
}
// (mapAttrs' (name: role: nameValuePair "aichat/roles/${name}.md" {text = role;}) cfg.roles);
};
}