nix-config/home/modules/git.nix
2022-01-29 21:43:24 +01:00

27 lines
463 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.dadada.home.git;
in
{
options.dadada.home.git = {
enable = mkEnableOption "Enable git config";
};
config = mkIf cfg.enable {
programs.git = {
enable = true;
extraConfig = {
status = {
short = true;
branch = 1;
};
commit = {
verbose = 1;
};
log = {
date = "iso8601-local";
};
};
};
};
}