40 lines
845 B
Nix
40 lines
845 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
#let
|
|
# gitEmailPath = "${config.xdg.configHome}/git-email";
|
|
#in
|
|
let
|
|
cfg = config.homeModules.git;
|
|
in
|
|
|
|
lib.mkIf cfg.enable {
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "wieerwill";
|
|
userEmail = "wieerwill@protonmail.com"; #lib.mkIf (builtins.pathExists gitEmailPath) (
|
|
# lib.strings.removeSuffix "\n" (builtins.readFile gitEmailPath)
|
|
#);
|
|
|
|
lfs.enable = true;
|
|
aliases = { };
|
|
#signing = {
|
|
# key = "ssh-ed25519 ...";
|
|
# signByDefault = true;
|
|
#};
|
|
extraConfig = {
|
|
#gpg = {
|
|
# format = "ssh";
|
|
#};
|
|
init.defaultBranch = "main";
|
|
push.autoSetupRemote = true;
|
|
credential.helper = "libsecret";
|
|
#credential.helper = "${
|
|
# pkgs.git.override { withLibsecret = true; }
|
|
# }/bin/git-credential-libsecret";
|
|
};
|
|
};
|
|
|
|
}
|