From 80b6273752eb926f55af49a224278b8944b9f7ed Mon Sep 17 00:00:00 2001 From: pupbrained Date: Thu, 16 May 2024 03:56:19 -0400 Subject: [PATCH] git creds --- modules/home/shell/git.nix | 1 + systems/x86_64-linux/navis/default.nix | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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" + ]; }; };