change from mono-home-manager to full flake multi-system configuration
This commit is contained in:
39
home/git.nix
Normal file
39
home/git.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ 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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user