nix-darwin/home/zsh.nix
Poby d653b39a56
feat: add github_cli_token as sops secret
mise activate zsh via oh-my-zsh plugin
2026-03-15 02:50:21 +09:00

50 lines
932 B
Nix
Executable file

{ config, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
defaultKeymap = "viins";
history = {
size = 10000;
save = 10000;
share = true;
ignoreAllDups = true;
ignoreDups = true;
ignoreSpace = true;
};
shellAliases = {
poby = "echo my name is poby";
nixconfig = "cd ~/nix-darwin && vim flake.nix";
just-darwin = "cd ~/nix-darwin && just darwin";
};
sessionVariables = {
EDITOR = "nvim";
};
initContent = ''
export GH_TOKEN="$(cat ${config.sops.secrets."github_cli_token".path})"
'';
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
plugins = [
"git"
"gitignore"
"history"
"sudo"
"vi-mode"
"zoxide"
"eza"
"mise"
];
};
};
}