nixos-config/home/yt/common.nix

64 lines
1.1 KiB
Nix
Raw Normal View History

2024-12-22 14:12:25 -05:00
{ pkgs, ... }:
2024-12-19 02:32:58 -05:00
{
imports = [
2024-12-15 02:44:50 -05:00
../tmux.nix
2024-12-25 04:58:40 +00:00
../zsh
2025-01-10 23:16:31 -05:00
../nixvim
];
2024-12-14 00:21:53 -05:00
home.sessionVariables = {
"EDITOR" = "nvim";
};
2024-12-15 02:08:57 -05:00
2024-12-22 14:12:25 -05:00
home.packages = with pkgs; [
man-pages
man-pages-posix
man
man-db
2025-01-05 17:24:03 -05:00
attic-client
bottom
btop
2024-12-22 14:12:25 -05:00
];
2024-12-23 02:30:20 -05:00
programs.zoxide.options = [ "--cmd cd" ];
2024-12-31 23:04:06 -05:00
programs.fzf = {
enable = true;
defaultCommand = "rg";
};
2024-12-23 02:30:20 -05:00
programs.zoxide.enable = true;
programs.eza.enable = true;
2024-12-24 17:25:06 -05:00
programs.git = {
enable = true;
userName = "cy";
userEmail = "cy@cy7.sh";
2025-01-01 04:28:11 -05:00
delta = {
enable = true;
options = {
navigate = true;
};
};
2024-12-29 20:32:53 -05:00
extraConfig = {
2025-01-01 03:01:36 -05:00
init.defaultBranch = "main";
push.autoSetupRemote = true; # assume -u on first push
2025-01-01 04:28:11 -05:00
pull = {
rebase = true;
autostash = true;
};
merge.tool = "vimdiff";
rebase = {
stat = true;
autoStash = true;
autoSquash = true;
updateRefs = true;
};
help.autocorrect = 1;
mergetool = {
prompt = false;
path = "nvim-open";
};
2024-12-29 20:32:53 -05:00
};
2024-12-24 17:25:06 -05:00
};
2024-12-31 23:04:06 -05:00
programs.ripgrep.enable = true;
programs.man.generateCaches = true;
}