nixos/home/common.nix
2026-11-21 16:57:39 +09:00

50 lines
1 KiB
Nix

{ pkgs, ... }: {
home = {
packages = with pkgs; [
ncdu
yt-dlp
];
stateVersion = "26.11";
};
programs = {
bash = {
enable = true;
historyControl = [ "ignoreboth" ];
sessionVariables.PROMPT_COMMAND = "history -a";
shellAliases = {
dd = "dd bs=1M conv=fsync status=progress";
la = "ls -lAtr";
};
};
git = {
enable = true;
settings = {
init.defaultbranch = "main";
user = {
email = "git@bogaledev.ru";
name = "bogale";
};
};
};
neovim = {
defaultEditor = true;
enable = true;
extraConfig = ''
set expandtab
set number
set relativenumber
set shiftwidth=2
set tabstop=2
'';
};
ssh = {
enable = true;
enableDefaultConfig = false;
settings."*" = {
SetEnv.TERM = "xterm-256color";
StrictHostKeyChecking = "accept-new";
};
};
};
services.ssh-agent.enable = true;
}