setting nvim as editor

This commit is contained in:
John Lancaster
2026-07-03 23:42:27 -05:00
parent a3a1cd7066
commit dccdc15851
+14 -1
View File
@@ -31,7 +31,10 @@ in
# This module will be imported by the user factory
homeManager."${username}" = { pkgs, ... }:
with inputs.self.meta.users."${username}"; {
with inputs.self.meta.users."${username}";
let
selfPkgs = inputs.self.packages.${pkgs.stdenv.hostPlatform.system};
in {
home.stateVersion = "25.11";
imports = [
inputs.self.modules.homeManager.shell-tools
@@ -39,8 +42,18 @@ in
inputs.self.modules.homeManager.git
];
xdg.enable = true;
home.packages = [
selfPkgs.neovim-min
];
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
GIT_EDITOR = "nvim";
SOPS_EDITOR = "nvim";
};
programs.git.settings.user.name = name;
programs.git.settings.user.email = email;
programs.git.settings.core.editor = "nvim";
};
};
}