summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-10-21 19:32:02 +0200
committerLinnnus <[email protected]>2023-10-21 19:38:27 +0200
commit97e1f6b70d45aeccc5e4d6bb15ea47f6adc7f107 (patch)
tree5845a80b5c4bfa9de569f194755854af7a79ec9d
parentcb0697f14a5a13985710e8e2824158c038e03d83 (diff)
git: Add cache, remove lastpass
-rw-r--r--home/git/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/home/git/default.nix b/home/git/default.nix
index 2a72aa9..3889978 100644
--- a/home/git/default.nix
+++ b/home/git/default.nix
@@ -3,7 +3,7 @@
lib,
...
}: let
- inherit (lib.modules) mkIf;
+ inherit (lib) optional;
inherit (pkgs.stdenv.hostPlatform) isDarwin;
in {
imports = [./ignore.nix ./aliases.nix];
@@ -15,8 +15,10 @@ in {
userName = "Linnnus";
userEmail = "[email protected]";
- extraConfig.credential.helper = mkIf isDarwin ["osxkeychain"];
- };
+ extraConfig.credential = {
+ "https://github.com/".username = "linnnus";
- programs.git-credential-lastpass.enable = !isDarwin;
+ helper = (optional isDarwin ["osxkeychain"]) ++ ["cache"];
+ };
+ };
}