nixos/home/common.nix

61 lines
1.3 KiB
Nix

{ config, pkgs, ... }:
{
home = {
stateVersion = "26.05";
packages = with pkgs; [
gh
];
};
programs = {
home-manager.enable = true;
bash = {
enable = true;
historyControl = [ "ignoreboth" ];
shellAliases = { la = "ls -lAtr"; };
};
git = {
enable = true;
settings = {
init.defaultbranch = "main";
user = {
name = "bogale";
email = "git@bogaledev.ru";
};
};
};
neovim = {
enable = true;
defaultEditor = true;
extraConfig = ''
set tabstop=4
set shiftwidth=4
set expandtab
set number
set relativenumber
autocmd FileType nix set tabstop=2 shiftwidth=2
'';
};
tmux = {
enable = true;
clock24 = true;
keyMode = "vi";
escapeTime = 0;
terminal = "screen-256color";
extraConfig = ''
unbind C-b
set -g mouse on
set -g prefix M-f
set-option -g focus-events on
set -s set-clipboard external
set-option -a terminal-features "xterm-256color:RGB"
bind f send-prefix
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind u split-window -h
bind i split-window -v
'';
};
};
}