This commit is contained in:
Guz
2025-06-12 19:18:22 -03:00
parent aa4d3c12ee
commit 6368f81298
8 changed files with 41 additions and 20 deletions

View File

@@ -17,6 +17,10 @@ in {
type = with types; bool;
default = cfg.enable;
};
git.wrapper = mkOption {
type = with types; nullOr package;
default = null;
};
lazygit.enable = mkOption {
type = with types; bool;
default = cfg.enable;
@@ -107,7 +111,13 @@ in {
enable = true;
userEmail = "contact@guz.one";
userName = "Gustavo \"Guz\" L de Mello";
package = config._devkit.packages.git;
package =
if isNull cfg.git.wrapper
then config._devkit.packages.git
else
pkgs.writeShellScriptBin "git" ''
${lib.getExe cfg.git.wrapper} ${lib.getExe config._devkit.packages.git} "$@"
'';
};
## Lazygit (Git TUI)