make $EDITOR the default for git

This commit is contained in:
jacekpoz 2024-02-14 23:45:16 +01:00
parent e7bfeaa204
commit e23234993f
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
3 changed files with 1 additions and 3 deletions

View file

@ -99,7 +99,6 @@
userName = "jacekpoz";
userEmail = "jacekpoz@cock.li";
signingKey = "0EEE6B0C9A8CC06820E59C3894E812A8B12AAE3C";
editor = "${pkgs.neovim-nightly}/bin/nvim";
defaultBranch = "master";
};
starship.enable = true;

View file

@ -342,7 +342,6 @@
userName = "jacekpoz";
userEmail = "jacekpoz@cock.li";
signingKey = "0EEE6B0C9A8CC06820E59C3894E812A8B12AAE3C";
editor = config.environment.sessionVariables.EDITOR;
defaultBranch = "master";
};
starship.enable = true;

View file

@ -22,7 +22,7 @@ in {
};
editor = mkOption {
type = types.str;
default = "nvim";
default = config.environment.sessionVariables.EDITOR;
description = "commit message editor";
};
defaultBranch = mkOption {