blob: 2a72aa9304818f449ef1b3d1c57a5d6c254e7831 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{
pkgs,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (pkgs.stdenv.hostPlatform) isDarwin;
in {
imports = [./ignore.nix ./aliases.nix];
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;
}
|