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
44
45
46
47
48
49
50
51
{ config, pkgs, lib, ... }:
let
cfg = config.ctucxConfig.programs.git;
in {
options = {
ctucxConfig.programs.git = {
enable = lib.mkEnableOption "git";
};
};
config = lib.mkIf cfg.enable {
home-manager.users.katja = {
# home.packages = [ pkgs.gitui ];
programs = {
# bash.shellAliases.lazygit = "gitui";
lazygit.enable = true;
git = {
enable = true;
package = pkgs.gitFull;
userName = "Leah (ctucx)";
userEmail = "git@ctu.cx";
difftastic.enable = true;
ignores = [
".DS_Store"
"*.swp"
];
aliases = {
log-gpg = "log --show-signature";
pfusch = "push";
};
extraConfig = {
features.manyFiles = true;
pull.rebase = false;
# "url \"git@git.ctu.cx:\"".insteadOf = "https://git.ctu.cx/";
};
};
};
};
};
}