https://git.jolheiser.com/dotnix.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
{ pkgs, config, ... }: let key = "0xB853ADA5DA7BBF7A"; in { programs.git = { enable = true; userName = "jolheiser"; userEmail = "john.olheiser@gmail.com"; signing = { signByDefault = true; key = key; }; aliases = { wt = "worktree"; ci = "commit -s -S -m"; br = "branch"; aa = "add ."; adog = "log --all --decorate --oneline --graph"; poh = "push origin HEAD"; cb = "checkout -b"; fu = "fetch upstream"; fo = "fetch origin"; }; lfs.enable = true; ignores = [".idea/"]; extraConfig = { init.defaultBranch = "main"; merge.conflictstyle = "diff3"; diff.colorMoved = "default"; core.editor = "hx"; }; delta = { enable = true; options = { features = "ctp-mocha"; navigate = true; light = false; line-numbers = true; side-by-side = true; }; }; includes = [ { condition = "gitdir:~/ndlegis/"; path = "${config.xdg.configHome}/git/work-config"; } ]; }; }