35 lines
832 B
Nix
35 lines
832 B
Nix
{ config
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
let
|
|
gnome-keyring-daemon = "${pkgs.gnome-keyring}/bin/gnome-keyring-daemon";
|
|
in
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
defaultKeymap = "viins";
|
|
autosuggestion.enable = true;
|
|
enableCompletion = true;
|
|
syntaxHighlighting.enable = true;
|
|
history = {
|
|
expireDuplicatesFirst = true;
|
|
extended = true;
|
|
path = "${config.xdg.dataHome}/zsh/zsh_history";
|
|
};
|
|
initExtra = ''
|
|
bindkey -v '^?' backward-delete-char
|
|
|
|
eval $(${gnome-keyring-daemon} -s -d 2> /dev/null)
|
|
export SSH_AUTH_SOCK
|
|
'';
|
|
shellAliases = {
|
|
cat = "${pkgs.bat}/bin/bat";
|
|
cp = "cp -v";
|
|
grep = "grep --color=auto";
|
|
ln = "ln -v";
|
|
mv = "mv -v";
|
|
rebuild_system = "sudo nixos-rebuild --flake /persist/home/.config/nixos#Skipper --cores 0";
|
|
};
|
|
};
|
|
}
|