refactor: move gemini api key to secret

This commit is contained in:
Mohammad Rafiq 2025-03-30 05:05:22 +08:00
parent 00c219cb05
commit 9ee5317e6a
No known key found for this signature in database
5 changed files with 34 additions and 8 deletions

21
configs/shell/aichat.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
home-manager.users.rafiq = {
home.shellAliases = {
ai = "aichat -r %shell% -e";
};
home.packages = with pkgs; [
aichat
];
xdg.configFile."aichat/config.yaml" = {
text = ''
model: gemini:gemini-2.0-flash
clients:
- type: gemini
'';
};
};
}