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

22 lines
422 B
Nix
Raw Normal View History

2024-05-25 00:37:37 +02:00
{ config, pkgs, lib, ... }:
with lib;
let
2024-05-27 22:23:32 +02:00
cfg = config.homeModules.shell.git;
2024-05-25 00:37:37 +02:00
in
{
2024-05-27 22:23:32 +02:00
options.homeModules.shell.git = {
2024-05-25 00:37:37 +02:00
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;
};
};
}