nixos-configs/home/vinzenz/zsh.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2025-03-17 19:06:47 +01:00
{ config, pkgs, ... }:
2024-10-27 12:33:35 +01:00
{
2025-03-15 19:05:34 +01:00
config.programs.zsh = {
initContent = ''
# eval "$(direnv hook zsh)";
2025-03-15 19:05:34 +01:00
export PATH=$PATH:/home/vinzenz/.cargo/bin
'';
2024-10-26 12:32:15 +02:00
2025-03-15 19:05:34 +01:00
enableCompletion = true;
2024-12-14 11:44:31 +01:00
2025-03-15 19:05:34 +01:00
shellAliases = {
2025-03-17 19:07:12 +01:00
myos-rebuild-boot = "sudo nixos-rebuild boot --flake .# --show-trace --log-format internal-json -v |& ${pkgs.nix-output-monitor}/bin/nom --json";
myos-rebuild-switch = "sudo nixos-rebuild switch --flake .# --show-trace --log-format internal-json -v |& ${pkgs.nix-output-monitor}/bin/nom --json";
2025-04-26 11:06:34 +02:00
s = "nix-shell -p";
2025-03-15 19:05:34 +01:00
my-direnvallow = "echo \"use nix\" > .envrc && direnv allow";
my-ip4 = "ip addr show | grep 192";
deadnix = "nix run github:astro/deadnix -- ";
statix = "nix run git+https://git.peppe.rs/languages/statix -- ";
};
2024-10-26 12:32:15 +02:00
2025-03-15 19:05:34 +01:00
history = {
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
expireDuplicatesFirst = true;
};
2024-10-26 12:32:15 +02:00
2025-03-15 19:05:34 +01:00
oh-my-zsh = {
enable = true;
theme = "agnoster";
plugins = [
"git"
"sudo"
"systemadmin"
"battery"
"dotnet"
"rust"
"tailscale"
];
};
2024-10-26 12:32:15 +02:00
};
}