git: Don't use emacs as editor when it's not enabled
This commit is contained in:
parent
e67e610fda
commit
00765568bb
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,12 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.eboskma.programs.git;
|
||||
|
||||
editor =
|
||||
if config.eboskma.programs.emacs.enable then
|
||||
"${config.eboskma.programs.emacs.package}/bin/emacsclient"
|
||||
else
|
||||
"${pkgs.neovim}/bin/nvim";
|
||||
in
|
||||
{
|
||||
options.eboskma.programs.git = {
|
||||
|
@ -116,7 +122,7 @@ in
|
|||
defaultBranch = "main";
|
||||
};
|
||||
core = {
|
||||
editor = "${config.eboskma.programs.emacs.package}/bin/emacsclient";
|
||||
editor = "${editor}";
|
||||
pager = "${pkgs.bat}/bin/bat";
|
||||
untrackedCache = true;
|
||||
# fsmonitor =
|
||||
|
|
Loading…
Reference in a new issue