chore: LOTS of edits related to packages, zsh, kde and kitty

This commit is contained in:
Ruben 2024-04-21 21:36:20 -05:00
commit a62b8006ad
No known key found for this signature in database
GPG key ID: AE181294E97E4802
7 changed files with 481 additions and 13 deletions

View file

@ -23,14 +23,15 @@
fastfetch
fd
delta
lsd
eza
ripgrep
sd
starship
zoxide
krabby
cod
atuin
alejandra
cargo
usbutils
jq
ffmpeg_6-full
@ -73,6 +74,8 @@
protontricks
mpv
mpdris2
mpd-discord-rpc
nextcloud-client
watchmate
obs-studio
@ -91,12 +94,89 @@
];
# my preferred shell customized to my needs
# TODO: theres only oh-my-zsh support out of the box, figure out
# how to customize sheldon and starship
# thanks to https://github.com/Yumasi/nixos-home/blob/main/zsh.nix
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
history.size = 50000;
syntaxHighlighting.enable = true;
antidote.enable = true;
antidote.plugins = [
# completions
"mattmc3/zephyr path:plugins/completion"
# shell benchmarking
"romkatv/zsh-bench kind:path kind:defer"
# oh my zsh
"ohmyzsh/ohmyzsh path:lib/key-bindings.zsh"
"ohmyzsh/ohmyzsh path:lib/clipboard.zsh"
#"ohmyzsh/ohmyzsh path:lib/completion.zsh"
"ohmyzsh/ohmyzsh path:plugins/copybuffer"
"ohmyzsh/ohmyzsh path:plugins/copyfile"
"ohmyzsh/ohmyzsh path:plugins/copypath"
"ohmyzsh/ohmyzsh path:plugins/extract kind:defer"
# zsh-utils
"belak/zsh-utils path:history"
"belak/zsh-utils path:utility"
"${config.home.homeDirectory}/${config.programs.zsh.dotDir}/plugins/editor"
# useful plugins
"atuinsh/atuin kind:defer"
"paulirish/git-open kind:defer"
"clavelm/yt-dlp-omz-plugin kind:defer"
"dim-an/cod kind:defer"
"jirutka/zsh-shift-select kind:defer"
"unixorn/fzf-zsh-plugin kind:defer"
"zdharma-continuum/fast-syntax-highlighting kind:defer"
"zsh-users/zsh-autosuggestions kind:defer"
"zsh-users/zsh-history-substring-search kind:defer"
];
shellAliases = {
# kitty
s = "kitten ssh";
# alias average commands to modern unix-util counterpartrs
cd = "z";
grep = "rg";
find = "fd";
df = "duf";
# different listing/ls styles
ls = "eza -lh --icons=always --hyperlink";
l = "eza";
la = "eza -1";
lt = "eza -T";
cat = "bat --paging=never";
# custom aliases
music = "ncmpcpp";
wttr = "curl 'wttr.in/?0' && curl 'wttr.in/?0?m'";
please = "sudo";
fucking = "sudo";
for-the-love-of-god = "sudo";
};
initExtra = ''
# export some custom paths
# (required for some packages/scripts/applications and some things in here)
path+=("${config.home.homeDirectory}/.local/bin")
path+=("${config.home.homeDirectory}/.cargo/bin")
# funny pokemon
krabby random
# load zoxide
eval "$(zoxide init zsh)"
'';
};
# starship prompt
programs.starship = {
enable = true;
settings = pkgs.lib.importTOML ./config/starship.toml;
};
# fuzzy command finder, required by a decent amount of things
@ -121,6 +201,29 @@
};
};
# KITTY !!!!
programs.kitty = {
enable = true;
font.name = "JetBrainsMono NF";
font.size = 11.8;
theme = "Catppuccin-Mocha";
settings = {
cursor_shape = "beam";
window_padding_width = 8;
scrollback_lines = 2000;
scrollback_pager_history_size = 512;
tab_bar_style = "powerline";
tab_powerline_style = "round";
};
shellIntegration.enableZshIntegration = true;
};
programs.vscode = {
enable = true;
package = pkgs.vscodium;
@ -156,10 +259,10 @@
services.mpd = {
enable = true;
dataDir = "/home/ruben/.config/mpd";
musicDirectory = "/home/ruben/Music";
playlistDirectory = "/home/ruben/.config/mpd/playlists";
dbFile = "/home/ruben/.config/mpd/db";
dataDir = "${config.home.homeDirectory}/.config/mpd";
musicDirectory = "${config.home.homeDirectory}/Music";
playlistDirectory = "${config.home.homeDirectory}/.config/mpd/playlists";
dbFile = "${config.home.homeDirectory}/.config/mpd/db";
extraConfig = ''
state_file_interval "120"