nixos/modules/home/cli/git/default.nix
2024-05-27 19:45:14 +02:00

22 lines
No EOL
410 B
Nix

{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.cli.git;
in
{
options.modules.cli.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;
};
};
}