-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathgit.nix
More file actions
43 lines (41 loc) · 982 Bytes
/
git.nix
File metadata and controls
43 lines (41 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ pkgs, ... }:
{
imports = [ ./weave.nix ];
home.packages = builtins.attrValues {
inherit (pkgs)
github-cli
git-subrepo
git-get
git-trim
git-who
git-my
;
};
programs.git = {
enable = true;
settings = {
user.name = "Kennan LeJeune";
credential.helper =
if pkgs.stdenvNoCC.isDarwin then "osxkeychain" else "cache --timeout=1000000000";
commit.verbose = true;
fetch.prune = true;
http.sslVerify = true;
init.defaultBranch = "main";
pull.rebase = true;
push.followTags = true;
push.autoSetupRemote = true;
alias = {
fix = "commit --amend --no-edit";
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi";
oops = "reset HEAD~1";
sub = "submodule update --init --recursive";
};
};
includes = [
{
path = "~/.gitconfig";
}
];
lfs.enable = true;
};
}