feat: refactor home-manager configuration for multi-host support

This commit is contained in:
lightly-toasted 2025-08-31 22:16:33 +09:00
parent f20c875a48
commit 6d1fd47bea
47 changed files with 51 additions and 14 deletions

View file

@ -1,30 +0,0 @@
{ pkgs, config, ... }:
{
sops.secrets.github_token = { };
home.packages = with pkgs; [
gemini-cli
];
home.file.".gemini/settings.json".text = ''
{
"selectedAuthType": "oauth-personal",
"mcpServers": {
"context7": {
"httpUrl": "https://mcp.context7.com/mcp"
},
"github": {
"command": "npx",
"args": [
"@modelcontextprotocol/server-github"
],
"timeout": 10000,
"trust": false
}
},
"preferredEditor": "neovim"
}
'';
home.file.".gemini/.env".text = ''
GITHUB_TOKEN=$(cat ${config.sops.secrets.github_token.path})
'';
}