feat(aichat): add aichat

This commit is contained in:
Mohammad Rafiq 2025-05-20 18:13:45 +08:00
parent e4d77010ea
commit aa8420c261
No known key found for this signature in database
3 changed files with 21 additions and 3 deletions

View file

@ -1,11 +1,16 @@
{ lib, ... }:
{ lib, config, ... }:
{
sops = {
defaultSopsFile = lib.snowfall.fs.get-file "secrets/secrets.yaml";
age.sshKeyPaths = [ "/persist/home/rafiq/.ssh/id_ed25519" ];
secrets = {
"keys/tailscale" = { };
"keys/gemini" = { };
"rafiq/hashedPassword".neededForUsers = true;
};
};
environment.shellInit = # sh
''
export GEMINI_API_KEY=$(sudo cat ${config.sops.secrets."keys/gemini".path})
'';
}