nixos/modules/home/shell/git/default.nix
2024-05-27 22:23:32 +02:00

22 lines
No EOL
422 B
Nix

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