dotfiles/modules/cli/git.nix

14 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"); }