fix(home): Move setting neovim vars to neovim module
This commit is contained in:
parent
2220d73688
commit
28700a038f
2 changed files with 8 additions and 8 deletions
|
@ -1,17 +1,11 @@
|
||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
config.home = {
|
config.home = {
|
||||||
sessionPath = [
|
sessionPath = [
|
||||||
"${config.home.homeDirectory}/.local/bin"
|
"${config.home.homeDirectory}/.local/bin"
|
||||||
];
|
];
|
||||||
|
|
||||||
sessionVariables = rec {
|
sessionVariables = {
|
||||||
HACK = "${config.home.homeDirectory}/hackin";
|
HACK = "${config.home.homeDirectory}/hackin";
|
||||||
|
|
||||||
# TODO: remove this when neovim is installed.
|
|
||||||
EDITOR = "nvim";
|
|
||||||
VISUAL = "${EDITOR}";
|
|
||||||
SUDO_EDITOR = "${EDITOR}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
|
|
|
@ -14,5 +14,11 @@ in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nvim-pkg
|
nvim-pkg
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = rec {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
VISUAL = "${EDITOR}";
|
||||||
|
SUDO_EDITOR = "${EDITOR}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue