nixfiles/home/base/zsh.nix

40 lines
1,000 B
Nix
Raw Normal View History

{pkgs, ...}: let
usb_data = import ../../data/usb_data.nix {};
2022-02-15 12:57:23 +00:00
in {
home.packages = with pkgs; [exa bat ripgrep vault age];
2021-12-21 00:07:05 +00:00
programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
2021-12-27 09:46:15 +00:00
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-21 00:07:05 +00:00
};
2021-12-27 09:46:15 +00:00
shellAliases = {
nixdirfmt = "alejandra .";
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";
ip6 = "ip -6";
2021-12-27 09:46:15 +00:00
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"
2022-03-09 20:16:30 +00:00
'';
2022-03-09 20:17:02 +00:00
};
2021-12-27 09:46:15 +00:00
programs.direnv = {
enable = true;
enableZshIntegration = true;
2021-12-21 00:07:05 +00:00
};
}