2024-05-25 15:28:51 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib.modules) mkDefault;
|
2023-09-28 19:22:33 +01:00
|
|
|
in {
|
2021-12-21 13:29:59 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2022-08-28 14:34:58 +01:00
|
|
|
lfs.enable = true;
|
2024-05-25 15:28:51 +01:00
|
|
|
package = mkDefault pkgs.gitMinimal;
|
2023-08-09 21:36:19 +01:00
|
|
|
userName = "chaos";
|
2023-09-28 19:22:33 +01:00
|
|
|
userEmail = "chaos@owo.monster";
|
2024-05-25 15:28:51 +01:00
|
|
|
extraConfig = {
|
|
|
|
credential.helper = "store";
|
|
|
|
};
|
2021-12-21 13:29:59 +00:00
|
|
|
};
|
2023-09-28 19:22:33 +01:00
|
|
|
|
|
|
|
home.packages = [
|
|
|
|
(pkgs.runCommand "git-extras" {} (let
|
2024-05-25 15:28:51 +01:00
|
|
|
gitLibExec = "${config.programs.git.package}/libexec/git-core";
|
2023-09-28 19:22:33 +01:00
|
|
|
in ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s ${gitLibExec}/git-diff $out/bin/git-diff
|
|
|
|
''))
|
|
|
|
];
|
2021-12-21 13:29:59 +00:00
|
|
|
}
|