32 lines
663 B
Nix
32 lines
663 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" | xargs hyprctl dispatch exec --
|
|
}
|
|
'';
|
|
history = {
|
|
path = "${config.xdg.dataHome}/zsh/history";
|
|
size = 10000;
|
|
};
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
plugins = [ "git" ];
|
|
theme = "frisk";
|
|
};
|
|
};
|
|
|
|
}
|