nixos/modules/home/shell/git/default.nix

33 lines
676 B
Nix
Raw Permalink Normal View History

2024-10-28 21:26:34 +01:00
{ config, 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;
2024-06-24 10:34:22 +02:00
lfs.enable = true;
userName = "Florian RICHER";
userEmail = "florian.richer@protonmail.com";
2024-07-18 21:46:04 +02:00
signing = {
signByDefault = true;
key = "B19E3F4A2D806AB4793FDF2FC73D37CBED7BFC77";
};
extraConfig = {
2024-07-18 21:46:04 +02:00
url."https://invent.kde.org/".insteadOf = "kde:";
url."ssh://git@invent.kde.org/".pushInsteadOf = "kde:";
};
};
};
}