feat: add github_cli_token as sops secret

mise activate zsh via oh-my-zsh plugin
This commit is contained in:
Poby 2026-03-14 22:03:50 +09:00
parent 63a3bb6e98
commit d653b39a56
No known key found for this signature in database
4 changed files with 10 additions and 4 deletions

View file

@ -1,8 +1,6 @@
{
programs.mise = {
enable = true;
enableZshIntegration = true;
enableBashIntegration = true;
globalConfig = {
tools = {

View file

@ -7,6 +7,7 @@
secrets = {
"github_ssh_key" = { };
"github_cli_token" = { };
};
};
}

View file

@ -1,3 +1,4 @@
{ config, ... }:
{
programs.zsh = {
enable = true;
@ -27,6 +28,10 @@
EDITOR = "nvim";
};
initContent = ''
export GH_TOKEN="$(cat ${config.sops.secrets."github_cli_token".path})"
'';
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
@ -38,6 +43,7 @@
"vi-mode"
"zoxide"
"eza"
"mise"
];
};
};