nix-conf/home-manager/zsh.nix
Thiago Sposito 2a8494b24b
feat: add sops, nitrokey support, update deps
* add `.sops.yaml`, secrets, pgp keys
* add nitrokey + smartcard pkgs, udev rules
* update flake inputs
* comment out ollama-cuda
2025-09-24 01:13:03 -03:00

43 lines
850 B
Nix

{ config
, lib
, pkgs
, ...
}:
{
config = {
home.file."scripts/lsgpu.sh" = {
source = ./scripts/lsgpu.sh;
executable = true;
};
programs.zsh = {
enable = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initContent = ''
eval "$(direnv hook zsh)"
export GPG_TTY=$(tty)
export EDITOR="nvim -n -c 'set noswapfile nobackup nowritebackup'"
'';
shellAliases = {
"vi" = "nvim";
"vim" = "nvim";
"ll" = "ls -l";
"lsgpu" = "$HOME/scripts/lsgpu.sh";
"gedit" = "gnome-text-editor";
"pbcopy" = "wl-copy";
"pbpaste" = "wl-paste";
};
oh-my-zsh = {
enable = true;
theme = "bureau";
plugins = [
"git"
"history"
];
};
};
};
}