nix-cli/home.nix

75 lines
1.7 KiB
Nix
Raw Normal View History

2024-11-12 21:29:45 +00:00
{ config, pkgs, ... }:
{
2024-12-18 18:10:09 +00:00
home.username = "root";
home.homeDirectory = "/root";
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "24.05"; # Please read the comment before changing.
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
home.packages = [
pkgs.neovim
pkgs.tmux
pkgs.oh-my-posh
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
pkgs.git
pkgs.gnutar
pkgs.btop
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
];
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
home.file = {
".config/omp/config.yaml".source = ./files/omp/config.yaml;
};
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
home.sessionVariables = {
EDITOR = "nvim";
};
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
programs.home-manager.enable = true;
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
home.shellAliases = {
l = "ls -hal";
dc = "docker compose";
rsync = "rsync -az --info=progress2";
t = "tmux new-session -A -s main";
e = "nvim";
hms = "home-manager switch --flake ~/nix#root -b backup";
};
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
programs.fish = {
enable = true;
shellInit = ''
oh-my-posh init fish --config ~/.config/omp/config.yaml | source
'';
};
programs.bash = {
enable = true;
};
programs.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
2024-11-12 21:29:45 +00:00
2024-12-18 18:10:09 +00:00
# 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";
};
2024-11-12 21:29:45 +00:00
}