diff --git a/modules/home/shell/git.nix b/modules/home/shell/git.nix index 3a88a5f..974b61f 100644 --- a/modules/home/shell/git.nix +++ b/modules/home/shell/git.nix @@ -12,6 +12,7 @@ with pkgs; { extraConfig = { init.defaultBranch = "main"; push.autoSetupRemote = true; + credential.helper = "store --file /etc/git-credentials"; }; signing = { diff --git a/systems/x86_64-linux/navis/default.nix b/systems/x86_64-linux/navis/default.nix index 66c15ba..6f3094f 100644 --- a/systems/x86_64-linux/navis/default.nix +++ b/systems/x86_64-linux/navis/default.nix @@ -98,15 +98,18 @@ with lib // pkgs // inputs; { persistence."/persist" = { hideMounts = true; directories = [ - "/root/.ssh" + "/etc/NetworkManager" "/etc/secrets" "/etc/ssh" + "/root/.ssh" "/var/lib/bluetooth" "/var/lib/nixos" "/var/lib/systemd/coredump" - "/etc/NetworkManager" ]; - files = ["/etc/machine-id"]; + files = [ + "/etc/machine-id" + "/etc/git-credentials" + ]; }; };