From aab33e4786de33d46d65cb7b9aed9373ea84f5fe Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 17 Nov 2024 20:53:32 +0000 Subject: [PATCH] git example --- git.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 git.nix diff --git a/git.nix b/git.nix new file mode 100644 index 0000000..b166c30 --- /dev/null +++ b/git.nix @@ -0,0 +1,10 @@ +{ repoPath, ... }: +{ + programs.git = { + enable = true; + extraConfig.safe.directory = "${repoPath}"; + extraConfig.credential.helper = "store --file ~/.git-credentials"; + userName = "John Lancaster"; + userEmail = "32917998+jsl12@users.noreply.github.com"; + }; +} \ No newline at end of file