nixos/modules/home/shell/git/default.nix
Florian RICHER 468bd046ee
All checks were successful
check / check (push) Successful in 33s
Add git lfs
2024-06-24 10:34:22 +02:00

29 lines
607 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;
lfs.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:";
};
};
};
}