nixos-configs/home/vinzenz/zsh.nix

39 lines
964 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
'';
shellAliases = {
my-apply = "sudo nixos-rebuild boot";
my-switch = "sudo nixos-rebuild switch";
my-update = "sudo nixos-rebuild boot --upgrade";
my-pull = "git -C ~/Repos/nixos-configuration pull --rebase";
my-fmt = "alejandra .";
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 -- ";
my-nix-fixup = "deadnix -e && statix fix";
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"
"docker"
"systemadmin"
];
2024-10-26 12:32:15 +02:00
};
}