nix-conf/home-modules/git/default.nix

35 lines
558 B
Nix
Raw Normal View History

2024-07-10 23:02:54 +02:00
{
config,
lib,
pkgs,
...
}:
2024-07-10 23:02:54 +02:00
let
cfg = config.jopejoe1.git;
in
{
options.jopejoe1.git = {
enable = lib.mkEnableOption "Enable Git";
};
config = lib.mkIf cfg.enable {
2024-02-01 16:29:51 +01:00
programs.lazygit.enable = true;
programs.git = {
enable = true;
package = pkgs.git;
userEmail = "johannes@joens.email";
userName = "jopejoe1";
extraConfig = {
core = {
2024-07-10 23:02:54 +02:00
whitespace = [
"blank-at-eol"
"blank-at-eof"
"space-before-tab"
];
};
};
};
};
}