nicks-nix-config/modules/zsh.nix

62 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2022-10-09 15:15:30 -07:00
{ config, pkgs, lib, ... }:
let
in
{
home.packages = with pkgs; [
grub2_light
];
2022-10-09 15:15:30 -07:00
programs.zsh = {
enable = true; # technically also enabled in user shell
dotDir = ".config/zsh";
initExtraFirst = ''
pfetch
2023-01-08 19:31:04 -08:00
fortune
2022-10-09 15:15:30 -07:00
'';
initExtra = ''
2023-10-27 09:32:49 -07:00
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
'';
2022-10-09 15:15:30 -07:00
autocd = true;
history = {
path = "$HOME/.histfile";
size = 2000;
share = true;
ignoreDups = false;
};
plugins = [
{
name = "powerline10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
2022-10-09 15:15:30 -07:00
}
];
2022-11-08 19:20:43 -08:00
shellAliases = {
2023-02-26 18:03:06 -08:00
cat = "bat";
2023-09-11 16:39:35 -07:00
ls = "eza";
2023-11-16 16:24:23 -08:00
jq = "jaq";
2023-12-25 18:55:28 -08:00
# gust = "/home/nixolas/Documents/Gust/target/debug/gust";
2023-01-09 20:26:13 -08:00
rm = "rmtrash";
open-config = "cd ~/Documents/nicks-nix-config; nvim";
switch-to-windows = "sudo grub-reboot 1; sudo reboot";
2023-11-06 17:27:13 -08:00
screenshot = "grim -g \"$(slurp -d)\" - | wl-copy -t image/png";
2023-11-16 16:23:41 -08:00
move-to-alaska = "ssh nixolas@100.64.0.1";
2023-12-25 18:55:28 -08:00
rebuild-shutdown = "sudo nixos-rebuild switch --flake .# && shutdown now";
rebuild-exit = "sudo nixos-rebuild switch --flake .# && exit";
2022-11-08 19:20:43 -08:00
};
2022-10-09 15:15:30 -07:00
};
home.file.".p10k.zsh" = {
source = ../rsrcs/.p10k.zsh;
};
}