nixconfig/home/cli/zsh/default.nix
2023-06-22 20:06:59 +02:00

17 lines
374 B
Nix
Executable File

{
...
}:
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";
};
};
}