nixconfig/home/cli/zsh/default.nix

17 lines
374 B
Nix
Raw Normal View History

2023-04-12 20:32:07 +02:00
{
...
}:
let
nixflake_dir = "$HOME/files/nixconfig";
in {
programs.zsh = {
enable = true;
shellAliases = {
"devsh" = "nix develop ${nixflake_dir} -c zsh";
"nixupdt" = "cd ${nixflake_dir} && nix flake update";
"nixbuild" = "cd ${nixflake_dir} && sudo nixos-rebuild switch --flake ./ ";
"nixgc" = "nix-collect-garbage -d";
};
};
}