nix-infra/modules/home/default.nix
2024-03-24 19:02:34 +01:00

35 lines
845 B
Nix

{ pkgs, ... }: {
imports = [ ./fish ./nvim ./tmux.nix ./starship.nix ];
home.packages = with pkgs; [
bat
lsd
gnupg
colmena
];
programs = {
home-manager.enable = true;
git = {
enable = true;
extraConfig = {
init = { defaultBranch = "main"; };
core = { editor = "nvim"; };
pull.rebase = true;
};
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";
p = "push";
pf = "push --force-with-lease";
r = "rebase";
ri = "rebase -i";
s = "status";
sw = "switch";
};
};
};
}