Files
nixos-setup/modules/home/programs.nix
T
2025-04-14 21:40:25 -04:00

72 lines
1.7 KiB
Nix

{ pkgs, user, ... }:
{
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;
lsd = {
enable = true;
enableAliases = true;
};
zsh = {
enable = true;
autosuggestion.enable = true;
initExtra = ''
export RPS1='$KUBE_PS1_SYMBOL_DEFAULT $(kubectx_prompt_info)/$(kubens -c)'
export PROMPT='%(!.%{%F{yellow}%}.)$USER@%{$fg[white]%}%M %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
'';
oh-my-zsh = {
enable = true;
plugins = [ "git" "sudo" "kubectx" "kube-ps1" ];
theme = "robbyrussell";
};
};
zellij = {
enable = true;
settings = {
theme = "nord";
session_serialization = 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 '
'';
};
alacritty = {
enable = false;
settings = {
general.import = [
"${pkgs.alacritty-theme}/ayu_dark.toml"
];
window = {
title = "Terminal";
blur = true;
};
font = {
normal = { family = "Fira Code"; style = "Regular"; };
bold = { family = "Fira Code"; style = "Bold"; };
italic = { family = "Fira Code"; style = "Italic"; };
};
terminal.shell = {
program = "/home/${user.name}/.nix-profile/bin/zsh";
};
};
};
}