nixos-configs/home/vinzenz/zsh.nix

42 lines
988 B
Nix
Raw Normal View History

2024-10-27 12:33:35 +01:00
{ config, ... }:
{
2024-10-26 12:32:15 +02:00
initExtra = ''
eval "$(direnv hook zsh)";
export PATH=$PATH:/home/vinzenz/.cargo/bin
'';
2024-12-14 11:44:31 +01:00
enableCompletion = true;
2024-10-26 12:32:15 +02:00
shellAliases = {
2024-12-01 10:03:30 +01:00
my-apply = "sudo nixos-rebuild boot --flake";
my-switch = "sudo nixos-rebuild switch --flake";
my-update = "sudo nixos-rebuild boot --upgrade --flake";
2025-03-15 10:25:44 +01:00
my-pull = "git -C ~/Repos/nixos-configuration pull --rebase";
2024-10-26 12:32:15 +02:00
my-test = "sudo nixos-rebuild test";
my-direnvallow = "echo \"use nix\" > .envrc && direnv allow";
my-ip4 = "ip addr show | grep 192";
2024-10-27 12:42:26 +01:00
deadnix = "nix run github:astro/deadnix -- ";
statix = "nix run git+https://git.peppe.rs/languages/statix -- ";
2024-10-26 12:32:15 +02:00
};
history = {
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
expireDuplicatesFirst = true;
};
oh-my-zsh = {
enable = true;
theme = "agnoster";
2024-10-27 12:33:35 +01:00
plugins = [
"git"
"sudo"
"systemadmin"
2025-03-15 10:25:44 +01:00
"battery"
"dotnet"
"rust"
"tailscale"
2024-10-27 12:33:35 +01:00
];
2024-10-26 12:32:15 +02:00
};
}