44 lines
952 B
Nix
44 lines
952 B
Nix
{
|
|
...
|
|
}:
|
|
{
|
|
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'"
|
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
export PATH="$HOME/.config/emacs/bin:$PATH"
|
|
|
|
'';
|
|
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|