nixos/modules/home/shell/git/default.nix
Florian RICHER 3ef6e6e381
All checks were successful
check / check (push) Successful in 35s
git: Add required configuration for kdesrc-build
2024-06-13 19:42:52 +02:00

27 lines
581 B
Nix

{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.home.shell.git;
in
{
options.modules.home.shell.git = {
enable = mkEnableOption ''
Enable git with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.git = {
enable = true;
userName = "Florian RICHER";
userEmail = "florian.richer@protonmail.com";
# signing.signByDefault = true;
extraConfig = {
url."https://invent.kde.org/".insteadOf = "kde:";
url."ssh://git@invent.kde.org/".pushInsteadOf = "kde:";
};
};
};
}