From 97e1f6b70d45aeccc5e4d6bb15ea47f6adc7f107 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sat, 21 Oct 2023 19:32:02 +0200 Subject: git: Add cache, remove lastpass --- home/git/default.nix | 10 ++++++---- 1 file 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 = "linnnus@users.noreply.github.com"; - extraConfig.credential.helper = mkIf isDarwin ["osxkeychain"]; - }; + extraConfig.credential = { + "https://github.com/".username = "linnnus"; - programs.git-credential-lastpass.enable = !isDarwin; + helper = (optional isDarwin ["osxkeychain"]) ++ ["cache"]; + }; + }; } -- cgit v1.2.3