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;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.eboskma.programs.git;
|
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
|
in
|
||||||
{
|
{
|
||||||
options.eboskma.programs.git = {
|
options.eboskma.programs.git = {
|
||||||
|
@ -116,7 +122,7 @@ in
|
||||||
defaultBranch = "main";
|
defaultBranch = "main";
|
||||||
};
|
};
|
||||||
core = {
|
core = {
|
||||||
editor = "${config.eboskma.programs.emacs.package}/bin/emacsclient";
|
editor = "${editor}";
|
||||||
pager = "${pkgs.bat}/bin/bat";
|
pager = "${pkgs.bat}/bin/bat";
|
||||||
untrackedCache = true;
|
untrackedCache = true;
|
||||||
# fsmonitor =
|
# fsmonitor =
|
||||||
|
|
Loading…
Reference in a new issue