Skip to content

Commit b3ac28b

Browse files
committed
chore: extract git from shell
1 parent 7cf552c commit b3ac28b

File tree

2 files changed

+31
-28
lines changed

2 files changed

+31
-28
lines changed

home-manager/development/git.nix

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{ meta, ... }:
2+
3+
{
4+
# fancier git diff
5+
programs.delta = {
6+
enable = true;
7+
enableGitIntegration = true;
8+
};
9+
10+
programs.git = {
11+
enable = true;
12+
lfs.enable = true;
13+
14+
settings = {
15+
user = {
16+
email = meta.git.email;
17+
name = meta.git.username;
18+
};
19+
20+
color.ui = true;
21+
core.editor = "vim";
22+
github.user = meta.git.username;
23+
push.autoSetupRemote = true;
24+
pull.rebase = true;
25+
26+
aliases = {
27+
graph = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all";
28+
};
29+
};
30+
};
31+
}

home-manager/development/shell.nix

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -120,34 +120,6 @@ in
120120
settings = settings;
121121
};
122122

123-
# fancier git diff
124-
programs.delta = {
125-
enable = true;
126-
enableGitIntegration = true;
127-
};
128-
129-
programs.git = {
130-
enable = true;
131-
lfs.enable = true;
132-
133-
settings = {
134-
user = {
135-
email = meta.git.email;
136-
name = meta.git.username;
137-
};
138-
139-
color.ui = true;
140-
core.editor = "vim";
141-
github.user = meta.git.username;
142-
push.autoSetupRemote = true;
143-
pull.rebase = true;
144-
145-
aliases = {
146-
graph = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all";
147-
};
148-
};
149-
};
150-
151123
programs.zoxide = {
152124
enable = true;
153125

0 commit comments

Comments
 (0)