dotfiles/modules/cli/git.nix
2021-10-31 19:45:06 +01:00

13 lines
327 B
Nix

{ config, lib, pkgs, ... }:
let
base = (home: {
programs.git = {
enable = true;
userName = "MoritzBoehme";
userEmail = "mr.x@moritzboeh.me";
extraConfig = { init.defaultBranch = "main"; };
delta.enable = true;
};
});
in { home-manager.users.moritz = { ... }: (base "/home/moritz"); }