40 lines
927 B
Nix
40 lines
927 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}: {
|
||
|
services.git-sync.enable = false; # Can't find pass for some reason...
|
||
|
programs.git = {
|
||
|
enable = true;
|
||
|
userName = "Evie Litherland-Smith";
|
||
|
userEmail = lib.mkDefault "evie@xenia.me.uk";
|
||
|
delta = {
|
||
|
enable = true;
|
||
|
options = {
|
||
|
line-numbers = true;
|
||
|
hyprlinks = true;
|
||
|
navigate = true;
|
||
|
side-by-side = true;
|
||
|
syntax-theme = with config.programs; lib.mkIf bat.enable bat.config.theme;
|
||
|
};
|
||
|
};
|
||
|
attributes = [
|
||
|
"*.gpg filter=gpg diff=gpg"
|
||
|
"*.asc filter=gpg diff=gpg"
|
||
|
];
|
||
|
extraConfig = let
|
||
|
user = "pixelifytica";
|
||
|
in {
|
||
|
github = {inherit user;};
|
||
|
gitea = {inherit user;};
|
||
|
pull.rebase = false;
|
||
|
init.defaultBranch = "main";
|
||
|
merge.conflictstyle = "diff3";
|
||
|
diff = {
|
||
|
colorMoved = "default";
|
||
|
gpg.textconv = "gpg --no-tty --decrypt";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|