summaryrefslogtreecommitdiff
path: root/home/git
diff options
context:
space:
mode:
Diffstat (limited to 'home/git')
-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"];
+ };
+ };
}