Make git package configurable
This commit is contained in:
parent
cc5a2a1d2f
commit
c9d7542ebe
1 changed files with 8 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue