nix-infra/modules/home/default.nix

34 lines
785 B
Nix
Raw Normal View History

2024-03-24 18:02:32 +00:00
{ pkgs, ... }: {
imports = [ ./fish ./nvim ./tmux.nix ./starship.nix ];
2024-03-24 18:02:28 +00:00
home.packages = with pkgs; [
bat
lsd
gnupg
colmena
];
programs = {
home-manager.enable = true;
git = {
enable = true;
extraConfig = {
2024-03-24 18:02:29 +00:00
init = { defaultBranch = "main"; };
core = { editor = "nvim"; };
2024-03-24 18:02:28 +00:00
pull.rebase = true;
};
2024-03-24 18:02:32 +00:00
aliases = {
a = "add";
ai = "add -p";
br = "branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate";
c = "commit";
del = "branch -D";
r = "rebase";
ri = "rebase -i";
s = "status";
sw = "switch";
};
2024-03-24 18:02:28 +00:00
};
};
}