nixconfig/modules/home/cli/git/default.nix

17 lines
409 B
Nix
Raw Normal View History

2023-11-04 02:28:27 +01:00
{ config, pkgs, ... }: {
programs.git = {
enable = true;
userEmail = "${config.homecfg.git.email}";
userName = "${config.homecfg.git.username}";
signing = {
key = "${config.homecfg.git.key}";
signByDefault = true;
};
ignores = [ "*result*" ".direnv" "node_modules" ];
extraConfig = { core.hooksPath = "./.dev/hooks"; };
};
home.packages = with pkgs; [ tig ];
}