setting nvim as editor
This commit is contained in:
+14
-1
@@ -31,7 +31,10 @@ in
|
|||||||
|
|
||||||
# This module will be imported by the user factory
|
# This module will be imported by the user factory
|
||||||
homeManager."${username}" = { pkgs, ... }:
|
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";
|
home.stateVersion = "25.11";
|
||||||
imports = [
|
imports = [
|
||||||
inputs.self.modules.homeManager.shell-tools
|
inputs.self.modules.homeManager.shell-tools
|
||||||
@@ -39,8 +42,18 @@ in
|
|||||||
inputs.self.modules.homeManager.git
|
inputs.self.modules.homeManager.git
|
||||||
];
|
];
|
||||||
xdg.enable = true;
|
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.name = name;
|
||||||
programs.git.settings.user.email = email;
|
programs.git.settings.user.email = email;
|
||||||
|
programs.git.settings.core.editor = "nvim";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user