Files
nix-cli/home.nix
2025-06-02 11:53:44 +02:00

79 lines
1.5 KiB
Nix

{ config, pkgs, ... }:
{
home = {
username = "root";
homeDirectory = "/root";
stateVersion = "25.05"; # Please read the comment before changing.
packages = with pkgs; [
neovim
tmux
git
gnutar
btop
# Rust utils
bat
eza
fd
ripgrep
ripgrep-all
zoxide
uutils-coreutils-noprefix
dust
yazi
starship
rclone
nerd-fonts.jetbrains-mono
];
sessionVariables = {
EDITOR = "nvim";
};
shellAliases = {
l = "eza -a1lh";
ls = "eza";
dc = "docker compose";
rsync = "rsync -az --info=progress2";
t = "tmux new-session -A -s main";
e = "nvim";
g = "lazygit";
d = "lazydocker";
vai = "home-manager switch --flake github:cupcakearmy/nix-cli#root -b backup";
};
};
programs = {
home-manager.enable = true;
starship.enable = true;
bash.enable = true;
fish.enable = true;
tmux = {
enable = true;
clock24 = true;
mouse = true;
extraConfig = ''
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# switch panes using jkhl
bind h select-pane -L
bind l select-pane -R
bind j select-pane -U
bind k select-pane -D
'';
shell = "${pkgs.fish}/bin/fish";
terminal = "tmux-256color";
};
};
}