about summary refs log tree commit diff
path: root/users/fcuny
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-12 14:21:54 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-12 14:21:54 -0800
commite682fc84f39540dca7b2aebb181c790621f91a82 (patch)
treeef311b079e6bebd036b23c57219e01e9b3af4c9e /users/fcuny
parentflake.lock (diff)
downloadworld-e682fc84f39540dca7b2aebb181c790621f91a82.tar.gz
home-manager: git credential helpers configuration
Diffstat (limited to 'users/fcuny')
-rw-r--r--users/fcuny/cli/git.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/users/fcuny/cli/git.nix b/users/fcuny/cli/git.nix
index f7aeb27..2e92121 100644
--- a/users/fcuny/cli/git.nix
+++ b/users/fcuny/cli/git.nix
@@ -15,6 +15,15 @@
     };
     userName = "Franck Cuny";
     userEmail = "franck@fcuny.net";
+    extraConfig = {
+      "credential \"https://github.com\"" = {
+        username = "fcuny";
+      };
+      "credential \"https://git.fcuny.net\"" = {
+        username = "fcuny";
+        helper = "!echo -n 'password='; pass git/git.fcuny.net"
+      };
+    };
     ignores = [
       "*.elc"
       "*.iml"