c3823d0cfb
You know that moment when you're learning a languaged and getting the grammar all wrong? No? Niether do I. resolves #6
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
# Configuration common to all Reciproka Kolektivo servers
|
|
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
# Program defaults for all hosts
|
|
programs.zsh = {
|
|
enable = true; # Also enables & installs nix-zsh-completions
|
|
autosuggestions.enable = true;
|
|
interactiveShellInit = ''
|
|
export TERM="xterm-256color"
|
|
eval "$(direnv hook zsh)"
|
|
test -r ~/.dir_colors && eval $(dircolors ~/.dir_colors)
|
|
export GPG_TTY="$(tty)"
|
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
gpgconf --launch gpg-agent
|
|
if type rg &> /dev/null; then
|
|
export FZF_DEFAULT_COMMAND='rg --files'
|
|
export FZF_DEFAULT_OPTS='-m --height 50% --border'
|
|
fi
|
|
'';
|
|
ohMyZsh = {
|
|
enable = true;
|
|
plugins = [
|
|
"fzf"
|
|
"git"
|
|
];
|
|
};
|
|
promptInit = ''
|
|
eval "$(starship init zsh)"
|
|
'';
|
|
vteIntegration = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
fzf
|
|
];
|
|
|
|
users.defaultUserShell = pkgs.zsh; # Set the default shell for all users
|
|
}
|