git is weird
This commit is contained in:
@@ -6,20 +6,19 @@
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homeconfig.git.enable {
|
||||
|
||||
#sops.secrets."git/username" = {};
|
||||
#sops.secrets."git/email" = {};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
userName._secret = if (!config.homeconfig.home-manager.enable) then
|
||||
config.home-manager.nathan.sops.secrets."git/username"
|
||||
else
|
||||
config.sops.secrets."git/username";
|
||||
|
||||
userEmail._secret = if (!config.homeconfig.home-manager.enable) then
|
||||
config.home-manager.nathan.sops.secrets."git/email"
|
||||
else
|
||||
config.sops.secrets."git/email";
|
||||
|
||||
/*
|
||||
userName._secret = "${config.sops.secrets."git/username".path}";
|
||||
userEmail._secret = "${config.sops.secrets."git/email".path}";
|
||||
*/
|
||||
userName = "Nathan";
|
||||
userEmail = "nathanblunkall5@gmail.com";
|
||||
|
||||
extraConfig = {
|
||||
init = {
|
||||
defaultBranch = "master";
|
||||
|
||||
Reference in New Issue
Block a user