Make git package configurable

This commit is contained in:
Erwin Boskma 2023-05-21 17:10:54 +02:00
parent cc5a2a1d2f
commit c9d7542ebe
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -10,6 +10,12 @@ in
options.eboskma.programs.git = {
enable = mkEnableOption "enable git";
package = mkOption {
description = "The git package to use";
type = types.package;
default = pkgs.gitFull;
};
name = mkOption {
description = "your name";
type = types.nonEmptyStr;
@ -36,7 +42,7 @@ in
config = mkIf cfg.enable {
programs.git = {
enable = true;
package = pkgs.gitFull;
package = cfg.package;
userName = cfg.name;
userEmail = cfg.email;
signing = mkIf (cfg.signingKey != null) {
@ -77,7 +83,7 @@ in
defaultBranch = "main";
};
core = {
editor = "${pkgs.neovim}/bin/nvim";
# editor = "${pkgs.neovim}/bin/nvim";
pager = "${pkgs.bat}/bin/bat";
};
merge = {