Compare commits

...

6 commits

Author SHA1 Message Date
fleaz
9ce4b859c7 update submodules 2025-04-02 21:34:02 +02:00
fleaz
8ed3f7e34f home-manager: install/uninstall more tools 2025-04-02 21:34:02 +02:00
fleaz
b75873b0f4 modules/neovim: add nvim-tree, disable netrw, add airline hotfix 2025-04-02 21:34:02 +02:00
fleaz
93e9736e44 modules/zsh: more aliases. fix history. enable private go support 2025-04-02 21:34:02 +02:00
fleaz
9902b4715c modules/tmux: enable mouse support 2025-04-02 21:34:02 +02:00
fleaz
57715094e1 modules/git: Fix typo 2025-04-02 21:34:02 +02:00
8 changed files with 43 additions and 13 deletions

View file

@ -66,6 +66,7 @@ in
pavucontrol
playerctl
jq
yq
psmisc
zip
nmap
@ -76,6 +77,7 @@ in
strace
usbutils
pciutils
navi
brightnessctl
wl-clipboard
@ -119,7 +121,10 @@ in
# kubernetes stuff
kubectl
krew
kubectx
kubernetes-helm
k9s
stern
kubecrypt
] ++ lib.optionals (config.my.isLaptop) [
networkmanager

View file

@ -27,20 +27,27 @@
ripgrep
devenv
bat
jless
jq
yq
vault
google-cloud-sdk
navi
# for zsh-fzf plugin
fzf
# denic tooling from overlay
gohome
kubecrypt
# kubernetes stuff
kubectl
krew
kubectx
kubernetes-helm
k9s
stern
];
home.username = "felix";

View file

@ -37,7 +37,7 @@
sort = "version:refname";
};
"help" = {
autocorrect = "promt";
autocorrect = "prompt";
};
"core" = {
pager = "less -F -X";

View file

@ -28,10 +28,8 @@
# Colorscheme
papercolor-theme
# Better support for netrw
vim-vinegar
netrw-nvim
nvim-web-devicons
# Filebrowser
nvim-tree-lua
# Bar at the top for all open buffers
bufferline-nvim
@ -157,6 +155,11 @@
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
" Bug with whitespaces. TODO: Remove this line after nvim 0.11
" https://github.com/vim-airline/vim-airline/issues/2704
let g:airline#extensions#whitespace#enabled = 0
" Don't use gopls from vim-go
let g:go_gopls_enabled = 0
@ -180,12 +183,12 @@
local hooks = require "ibl.hooks"
hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_space_indent_level)
hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_tab_indent_level)
require'netrw'.setup{}
require("auto-session").setup {
auto_save_enabled = true;
auto_restore_enabled = true;
}
require("bufferline").setup{}
require("nvim-tree").setup()
require('lspconfig').gopls.setup{}
require('lspconfig').pyright.setup{}

View file

@ -2,6 +2,7 @@
programs.tmux = {
enable = true;
keyMode = "vi";
mouse = true;
escapeTime = 0;
plugins = [
pkgs.tmuxPlugins.gruvbox
@ -14,7 +15,6 @@
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
'';
};

View file

@ -7,20 +7,26 @@
theme = "kolo";
};
history = {
share = false; # every terminal has it's own history
share = false; # every terminal has it's own history durring runtime
extended = true;
size = 10000;
};
shellAliases = {
"k" = "kubectl";
"kx" = "kubectx";
"kn" = "kubechn";
"kc" = "kubechc";
"dl" = "ls -lhtr --color=always ~/Downloads | tail -n 10"; # Show the 10 newest Downloads
"buzzer" = "ssh -i Nextcloud/Privat/id_door door@door.cccda.de buzzer";
"beep" = "paplay /usr/share/sounds/freedesktop/stereo/complete.oga"; # play "ding" for long running jobs
"dig" = "dig +short";
"cat" = "bat --theme=TwoDark --style=plain";
"watch" = "watch "; # https://unix.stackexchange.com/a/25329
"kge" = "kubectl get events --sort-by='.lastTimestamp'";
};
initExtra = ''
setopt APPEND_HISTORY # Append history to global histfile on exit
autoload -U colors && colors
function is_ssh(){
@ -28,10 +34,19 @@
echo %{$fg[red]%}SSH-Session on $(hostname -s)%{$reset_color%}
fi
}
RPS1='$(is_ssh) $(kubectx_prompt_info)'
function get_k8s_info(){
kubectl config get-contexts| grep "*" | awk '{print $3"/"$5}'
}
RPS1='$(is_ssh) $(get_k8s_info)'
export EDITOR="nvim";
export PATH="$PATH:$HOME/.krew/bin:$HOME/bin:$HOME/go/bin";
source <(kubectl completion zsh)
source ~/repos/kubech/kubech
export GOPRIVATE=gitlab.com
export GOAUTH=netrc
eval "$(direnv hook zsh)"
'';
};

@ -1 +1 @@
Subproject commit 7fc544758f1004ca7e193acc4a8d0ee784e585a9
Subproject commit 62209bcff29f6d2d1a643870b643d6c9d2577d5f

@ -1 +1 @@
Subproject commit 0073a1ebe983e942b7a9513ef33ad29c6ac8d6ac
Subproject commit b5be7037c16f25899be906029de9dc9cb6f79ff8