2022-10-09 15:15:30 -07:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2023-09-27 16:38:51 -07:00
|
|
|
|
|
|
|
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 = ''
|
2023-01-06 22:17:49 -08:00
|
|
|
pfetch
|
2023-01-08 19:31:04 -08:00
|
|
|
fortune
|
2022-10-09 15:15:30 -07:00
|
|
|
'';
|
|
|
|
|
2022-10-11 16:22:24 -07:00
|
|
|
initExtra = ''
|
2023-10-27 09:32:49 -07:00
|
|
|
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
|
2022-10-11 16:22:24 -07:00
|
|
|
[[ ! -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;
|
2022-10-11 16:22:24 -07:00
|
|
|
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";
|
2022-12-10 22:14:12 -08:00
|
|
|
gust = "/home/nixolas/Documents/Gust/target/debug/gust";
|
2023-01-09 20:26:13 -08:00
|
|
|
rm = "rmtrash";
|
2023-09-21 11:23:58 -07:00
|
|
|
open-config = "cd ~/Documents/nicks-nix-config; nvim";
|
2023-09-27 16:38:51 -07:00
|
|
|
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";
|
2022-11-08 19:20:43 -08:00
|
|
|
};
|
2022-10-09 15:15:30 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
home.file.".p10k.zsh" = {
|
|
|
|
source = ../rsrcs/.p10k.zsh;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|