nixfiles/home/base/zsh.nix

37 lines
930 B
Nix

{ config, pkgs, ... }: {
home.packages = with pkgs; [ exa bat ripgrep vault age ];
programs.zsh = {
enable = true;
enableSyntaxHighlighting = true;
enableAutosuggestions = true;
oh-my-zsh = {
enable = true;
theme = "afowler";
plugins = [ ];
};
shellAliases = {
nixdirfmt = "nixfmt $(fd -e nix)";
exa = "exa --time-style long-iso";
ls = "exa -G";
la = "exa -Ga";
ll = "exa -l";
lla = "exa -lga";
sys = "systemctl";
sysu = "systemctl --user";
logu = "journalctl --user";
log = "journalctl";
dmesg = "dmesg -HP";
hg = "history 0 | rg";
chaos_age = "age -i /usb/age-keys/chaoskey.priv";
chaos_pub = "cat /usb/age-keys/chaoskey.pub";
};
envExtra = ''
export VAULT_ADDR="https://vault.owo.monster"
'';
};
programs.direnv = {
enable = true;
enableZshIntegration = true;
};
}