This commit is contained in:
2025-08-16 11:26:46 -05:00
parent 6cf545e7f3
commit d48d7b50c5
2 changed files with 15 additions and 11 deletions

View File

@@ -7,17 +7,21 @@
config = lib.mkIf config.homeconfig.git.enable {
#sops.secrets."git/username" = {};
#sops.secrets."git/email" = {};
sops.secrets."git/username" = {};
sops.secrets."git/email" = {};
sops.templates.gitconfig.content = ''
[user]
name = "${config.sops.placeholder."git/username"}"
email = "${config.sops.placeholder."git/email"}"
'';
programs.git = {
enable = true;
userName._secret = "${config.sops.secrets."git/username".path}";
userEmail._secret = "${config.sops.secrets."git/email".path}";
#userName = "Nathan";
#userEmail = "nathanblunkall5@gmail.com";
includes = [
{ path = "${config.sops.templates.gitconfig.path}"; }
];
extraConfig = {
init = {