nixconfig/modules/home/cli/git/default.nix
2023-11-08 17:15:32 +01:00

17 lines
409 B
Nix
Executable File

{ 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 ];
}