diff options
author | Linnnus <[email protected]> | 2023-10-07 23:18:57 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-10-08 13:14:15 +0200 |
commit | 4c823f476744aff1c9ec6661d8254f1a63865b40 (patch) | |
tree | 32fbb4f7219351544d318eb6dadbd969ef24b9ba /home | |
parent | 0d3dfdeb6d2166ed394a15c3899ad9a1cccbfc59 (diff) |
Use git-credential-lastpass
Diffstat (limited to 'home')
-rw-r--r-- | home/git/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/home/git/default.nix b/home/git/default.nix index bd7295e..cf6419c 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -1,12 +1,18 @@ -{...}: { +{pkgs,lib,...}: let inherit (lib.modules) mkIf; +inherit (pkgs.stdenv.hostPlatform) isDarwin; +in { programs.git = { enable = true; # Set privacy-respecting user information. userName = "Linnnus"; userEmail = "[email protected]"; + + extraConfig.credential.helper = mkIf isDarwin [ "osxkeychain" ]; }; + programs.git-credential-lastpass.enable = !isDarwin; + home.shellAliases = { gs = "git status"; gd = "git diff"; |