nixos/home/common.nix
2026-10-06 14:53:26 +09:00

63 lines
1.5 KiB
Nix

{ config, pkgs, ... }:
{
home.stateVersion = "26.05";
services.ssh-agent.enable = true;
home.packages = with pkgs; [ ncdu yt-dlp ];
programs = {
home-manager.enable = true;
bash = {
enable = true;
shellAliases.la = "ls -lAtr";
historyControl = [ "ignoreboth" ];
};
ssh = {
enable = true;
enableDefaultConfig = false;
settings."*".SetEnv.TERM = "xterm-256color";
};
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
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
set -s set-clipboard external
set-option -g focus-events on
set-option -a terminal-features "xterm-256color:RGB"
'';
};
};
}