nixconfig/modules/home/cli/zsh/default.nix

19 lines
545 B
Nix
Raw Normal View History

2023-11-04 02:28:27 +01:00
{ pkgs, ... }:
2023-11-16 23:06:28 +01:00
let
2023-11-04 02:28:27 +01:00
nixflake_dir = "$HOME/files/nixconfig";
nixflake_url = "git+https://git.helcel.net/sora/nixconfig";
in {
programs.zsh = {
enable = true;
shellAliases = {
"sudo" = "sudo ";
"devsh" =
"nix develop --profile /tmp/devsh-env ${nixflake_url}#devsh -c zsh";
"nixb" = "(sudo nixos-rebuild switch --flake ${nixflake_url})";
"nixgc" = "sudo nix-collect-garbage -d && nix-collect-garbage -d";
"ssh" = "TERM=xterm-256color ${pkgs.openssh}/bin/ssh";
"top" = "btop";
};
};
}