nixos/home/common/optional/git.nix

19 lines
352 B
Nix
Raw Permalink Normal View History

{ pkgs, configVars, ... }:
let
email = configVars.email.user;
in
2024-05-11 20:55:27 +01:00
{
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "Sam";
userEmail = "${email}";
2024-05-11 20:55:27 +01:00
aliases = { };
extraConfig = {
pull.rebase = false;
init.defaultBranch = "master";
};
ignores = [ ".direnv" "result" ];
};
}