nixfiles/home/base/zsh.nix

39 lines
1,014 B
Nix
Raw Normal View History

2022-02-15 12:57:23 +00:00
{ config, pkgs, ... }:
let usb_data = import ../../hosts/lappy/hardware/usb_data.nix { };
in {
home.packages = with pkgs; [ exa bat ripgrep vault age ];
2021-12-21 00:07:05 +00:00
programs.zsh = {
enable = true;
2021-12-27 09:46:15 +00:00
enableSyntaxHighlighting = true;
enableAutosuggestions = true;
2021-12-26 14:07:09 +00:00
oh-my-zsh = {
2021-12-21 00:07:05 +00:00
enable = true;
theme = "afowler";
plugins = [ ];
};
2021-12-27 09:46:15 +00:00
shellAliases = {
2021-12-28 22:06:26 +00:00
nixdirfmt = "nixfmt $(fd -e nix)";
2021-12-27 09:46:15 +00:00
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";
2022-02-15 12:57:23 +00:00
chaos_age = "age -i ${usb_data.chaos_age_privkey_path}";
chaos_pub = "cat ${usb_data.chaos_age_pubkey_path}";
2021-12-27 09:46:15 +00:00
};
2022-02-13 13:57:39 +00:00
envExtra = ''
export VAULT_ADDR="https://vault.owo.monster"
'';
2021-12-27 09:46:15 +00:00
};
programs.direnv = {
enable = true;
enableZshIntegration = true;
2021-12-21 00:07:05 +00:00
};
}