nixconf/common/zsh.nix
2024-03-03 19:03:44 +01:00

32 lines
630 B
Nix

{ config, pkgs, inputs, ... }:
{
home.packages = with pkgs; [
zsh
];
programs.zsh = {
enable=true;
shellAliases = {
ll = "lsd -l";
lt = "lsd -l --tree";
# TODO find if i can make these use the 'current' flake
utest = "sudo nixos-rebuild test --flake $HOME/nixos#default";
update = "sudo nixos-rebuild switch --flake $HOME/nixos#default";
};
initExtra = ''
nrun() {
NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1"
}
'';
history = {
path = "${config.xdg.dataHome}/zsh/history";
size = 10000;
};
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "frisk";
};
};
}