add zsh and kitty. Basic structure

This commit is contained in:
2025-11-14 01:08:32 +03:00
parent fe3ff1f1cb
commit 737507ced7
10 changed files with 2168 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
amnezia-vpn
telegram-desktop
git
hyprlock
vscode
# gnomeExtensions.paperwm
nixfmt
];
imports = [
./modules/zsh/zsh.nix
./modules/kitty.nix
];
# dconf = {
# enable = true;
# settings = {
# "org/gnome/shell" = {
# enabled-extensions = [
# "paperwm@paperwm.github.com"
# ];
# };
# "org/gnome/desktop/interface".show-battery-percentage = true;
# };
# };
home.username = "krosh";
home.homeDirectory = "/home/krosh";
home.stateVersion = "25.05";
programs.home-manager.enable = true;
}
+1
View File
@@ -0,0 +1 @@
# TODO
+58
View File
@@ -0,0 +1,58 @@
{ config, pkgs, ... }:
{
programs.kitty = {
enable = true;
package = pkgs.kitty;
settings = {
font_family = "JetBrainsMono Nerd Font";
cursor_trail = 10;
cursor_trail_decay = "0.1 0.4";
scrollback_lines = 5000;
mouse_hide_wait = 3.0;
background_opacity = "0.6";
dynamic_background_opacity = "yes";
background_blur = 5;
shell = "${pkgs.zsh}/bin/zsh";
};
keybindings = {
"ctrl+shift+enter" = "new_window_with_cwd";
};
extraConfig = ''
# --- Catppuccin Mocha (dark) theme ---
foreground #cdd6f4
background #1e1e2e
selection_foreground #1e1e2e
selection_background #f5e0dc
color0 #45475a
color1 #f38ba8
color2 #a6e3a1
color3 #f9e2af
color4 #89b4fa
color5 #f5c2e7
color6 #94e2d5
color7 #bac2de
color8 #585b70
color9 #f38ba8
color10 #a6e3a1
color11 #f9e2af
color12 #89b4fa
color13 #f5c2e7
color14 #94e2d5
color15 #a6adc8
'';
};
home.packages = with pkgs; [
kitty
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
}
View File
+9
View File
@@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
amnezia-vpn
telegram-desktop
firefox
];
}
File diff suppressed because it is too large Load Diff
+96
View File
@@ -0,0 +1,96 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
zsh-powerlevel10k
fzf
fd
];
programs.zsh = {
loginShell = true;
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
theme = "powerlevel10k/powerlevel10k"; # agnoster refined nicoulaj
plugins = [
"git"
"python"
"ssh"
"eza"
"zoxide"
"fzf"
"command-not-found"
"colored-man-pages"
];
};
shellAliases = {
ll = "ls -lh";
la = "ls -la";
".." = "cd ..";
c = "clear";
addpath = "export PATH=$PATH:$1";
tree = "eza --tree";
"..." = "cd ../..";
gcapush = "f() { git add -A && git commit -m \"$1\" && git push; }; f";
};
initExtraBeforeCompInit = ''
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
'';
initExtra = ''
zstyle ':omz:plugins:eza' 'git-status' yes
zstyle ':omz:plugins:eza' 'header' yes
zstyle ':omz:plugins:eza' 'icons' yes
ZOXIDE_CMD_OVERRIDE=cd
### --- HISTORY SETTINGS ------------------------------
HISTSIZE=5000
SAVEHIST=5000
HISTFILE=~/.zsh_history
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_SAVE_NO_DUPS
setopt SHARE_HISTORY
### --- COMPLETION TUNING -----------------------------
autoload -Uz compinit && compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' list-colors ""
### --- KEYBINDINGS ----------------------------------
# bindkey -e # Emacs-style bindings
# bindkey -v # Vim-style bindings
### --- ENVIRONMENT VARS ------------------------------
export EDITOR="nvim"
export VISUAL="nvim"
export PAGER="less"
export LESS="-R"
# --- fzf configuration ---
if command -v fzf >/dev/null 2>&1; then
# Enable key bindings and auto-completion
[ -f "${pkgs.fzf}/share/fzf/key-bindings.zsh" ] && source "${pkgs.fzf}/share/fzf/key-bindings.zsh"
[ -f "${pkgs.fzf}/share/fzf/completion.zsh" ] && source "${pkgs.fzf}/share/fzf/completion.zsh"
# Example of optional fzf tuning
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
fi
'';
};
home.file.".config/zsh/p10k.zsh".source = ./p10k.zsh;
home.file.".p10k.zsh".source = config.home.homeDirectory + "/.config/zsh/p10k.zsh";
}