2024-07-03 07:15:39 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2024-07-08 08:58:32 +01:00
|
|
|
pkgs,
|
2024-07-03 07:15:39 +01:00
|
|
|
...
|
2024-07-30 15:06:34 +01:00
|
|
|
}:
|
|
|
|
{
|
2024-07-03 07:15:39 +01:00
|
|
|
services.git-sync.enable = false; # Can't find pass for some reason...
|
2024-07-30 15:06:34 +01:00
|
|
|
programs.git =
|
|
|
|
let
|
|
|
|
package = pkgs.git.override {
|
|
|
|
withLibsecret = true;
|
|
|
|
withSsh = true;
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
2024-07-30 15:06:34 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit package;
|
|
|
|
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;
|
2024-09-12 09:17:57 +01:00
|
|
|
syntax-theme = lib.mkIf config.programs.bat.enable config.programs.bat.config.theme;
|
2024-07-30 15:06:34 +01:00
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
2024-07-30 15:06:34 +01:00
|
|
|
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";
|
|
|
|
credential.helper = "${package}/bin/git-credential-libsecret";
|
|
|
|
diff = {
|
|
|
|
colorMoved = "default";
|
|
|
|
gpg.textconv = "gpg --no-tty --decrypt";
|
|
|
|
};
|
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
|
|
|
}
|