git creds

This commit is contained in:
Mars 2024-05-16 03:56:19 -04:00
parent d54fcaca81
commit 80b6273752
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
2 changed files with 7 additions and 3 deletions

View file

@ -12,6 +12,7 @@ with pkgs; {
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";
push.autoSetupRemote = true; push.autoSetupRemote = true;
credential.helper = "store --file /etc/git-credentials";
}; };
signing = { signing = {

View file

@ -98,15 +98,18 @@ with lib // pkgs // inputs; {
persistence."/persist" = { persistence."/persist" = {
hideMounts = true; hideMounts = true;
directories = [ directories = [
"/root/.ssh" "/etc/NetworkManager"
"/etc/secrets" "/etc/secrets"
"/etc/ssh" "/etc/ssh"
"/root/.ssh"
"/var/lib/bluetooth" "/var/lib/bluetooth"
"/var/lib/nixos" "/var/lib/nixos"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/etc/NetworkManager"
]; ];
files = ["/etc/machine-id"]; files = [
"/etc/machine-id"
"/etc/git-credentials"
];
}; };
}; };