43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{pkgs, ...}: let
|
|
usb_data = import ../../data/usb_data.nix {};
|
|
in {
|
|
home.packages = with pkgs; [eza bat ripgrep vault-bin libarchive age];
|
|
programs.zsh = {
|
|
enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
enableAutosuggestions = true;
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
theme = "afowler";
|
|
plugins = [];
|
|
};
|
|
shellAliases = {
|
|
nixdirfmt = "alejandra .";
|
|
tar = "bsdtar";
|
|
exa = "eza";
|
|
eza = "eza --time-style long-iso";
|
|
ls = "eza -G";
|
|
la = "eza -Ga";
|
|
ll = "eza -l";
|
|
lla = "eza -lga";
|
|
ip6 = "ip -6";
|
|
sys = "systemctl";
|
|
sysu = "systemctl --user";
|
|
logu = "journalctl --user";
|
|
log = "journalctl";
|
|
dmesg = "dmesg -HP";
|
|
hg = "history 0 | rg";
|
|
chaos_age = "age -i ${usb_data.chaos_age_privkey_path}";
|
|
chaos_age_encrypt = "age -a -e -i ${usb_data.chaos_age_privkey_path}";
|
|
chaos_pub = "cat ${usb_data.chaos_age_pubkey_path}";
|
|
};
|
|
envExtra = ''
|
|
export VAULT_ADDR="https://vault.owo.monster"
|
|
'';
|
|
};
|
|
programs.direnv = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
}
|