154 lines
3.3 KiB
Nix
154 lines
3.3 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
bat.enable = true;
|
|
neovim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
plugins = with pkgs.vimPlugins; [
|
|
nvim-lspconfig
|
|
nvim-treesitter.withAllGrammars
|
|
telescope-cheat-nvim
|
|
yuck-vim
|
|
statix
|
|
];
|
|
};
|
|
direnv = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
};
|
|
lsd = {
|
|
enable = false;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
colors = "auto";
|
|
# git = true;
|
|
icons = "always";
|
|
};
|
|
fastfetch = {
|
|
enable = true;
|
|
};
|
|
eza = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
starship = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
settings = {
|
|
add_newline = true;
|
|
env_var = {
|
|
variable = "SHELL";
|
|
default = "unknown shell";
|
|
};
|
|
battery = {
|
|
disabled = false;
|
|
};
|
|
time = {
|
|
disabled = false;
|
|
};
|
|
kubernetes = {
|
|
disabled = false;
|
|
};
|
|
nix_shell = {
|
|
disabled = false;
|
|
};
|
|
localip = {
|
|
disabled = false;
|
|
ssh_only = false;
|
|
};
|
|
hostname = {
|
|
disabled = false;
|
|
ssh_only = false;
|
|
};
|
|
direnv = {
|
|
disabled = false;
|
|
};
|
|
gcloud = {
|
|
disabled = true;
|
|
};
|
|
sudo = {
|
|
disabled = false;
|
|
};
|
|
memory_usage = {
|
|
disabled = false;
|
|
};
|
|
};
|
|
};
|
|
nushell = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
$env.config.show_banner = false
|
|
'';
|
|
plugins = with pkgs.nushellPlugins; [
|
|
polars
|
|
];
|
|
};
|
|
carapace = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion = {
|
|
enable = true;
|
|
strategy = [
|
|
"match_prev_cmd"
|
|
"history"
|
|
"completion"
|
|
];
|
|
};
|
|
syntaxHighlighting.enable = true;
|
|
initContent = ''
|
|
__cmd_start_time=$EPOCHSECONDS
|
|
__cmd_has_run=0
|
|
__last_cmd=""
|
|
|
|
__record_start() {
|
|
__cmd_start_time=''$EPOCHSECONDS
|
|
__cmd_has_run=1
|
|
__last_cmd="''$1"
|
|
}
|
|
__notify_onrecord_start() { __cmd_start_time=''$EPOCHSECONDS }
|
|
__notify_on_finish() {
|
|
if (( __cmd_has_run )); then
|
|
local exit_code=''$?
|
|
local elapsed=''$(( EPOCHSECONDS - __cmd_start_time ))
|
|
if (( elapsed >= 5 )); then
|
|
notify-send "''${__last_cmd} finished (''${elapsed}s)" "(exit: ''$exit_code)"
|
|
fi
|
|
fi
|
|
__cmd_start_time=''$EPOCHSECONDS
|
|
}
|
|
|
|
add-zsh-hook preexec __record_start
|
|
add-zsh-hook precmd __notify_on_finish
|
|
'';
|
|
};
|
|
zellij = {
|
|
enable = true;
|
|
settings = {
|
|
theme = "nord";
|
|
session_serialization = false;
|
|
show_startup_tips = false;
|
|
};
|
|
};
|
|
tmux = {
|
|
enable = true;
|
|
clock24 = true;
|
|
mouse = true;
|
|
plugins = with pkgs.tmuxPlugins; [ nord cpu sidebar ];
|
|
extraConfig = ''
|
|
set -g status-right '#{cpu_bg_color} CPU: #{cpu_icon} #{cpu_percentage} | %a %h-%d %H:%M '
|
|
'';
|
|
};
|
|
}
|