secrets
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user