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;
2024-04-14 07:57:07 +02:00
userEmail = "${config.usercfg.git.email}";
userName = "${config.usercfg.git.username}";
2023-11-04 02:28:27 +01:00
signing = {
2024-04-14 07:57:07 +02:00
key = "${config.usercfg.git.key}";
2023-11-04 02:28:27 +01:00
signByDefault = true;
};
ignores = [ "*result*" ".direnv" "node_modules" ];
extraConfig = { core.hooksPath = "./.dev/hooks"; };
};
home.packages = with pkgs; [ tig ];
}