fix(home): Move setting neovim vars to neovim module

This commit is contained in:
punkfairie 2025-01-11 21:20:24 -08:00
parent 2220d73688
commit 28700a038f
No known key found for this signature in database
GPG key ID: B3C5488E9A1A7CA6
2 changed files with 8 additions and 8 deletions

View file

@ -1,17 +1,11 @@
{ config, ... }:
{
{config, ...}: {
config.home = {
sessionPath = [
"${config.home.homeDirectory}/.local/bin"
];
sessionVariables = rec {
sessionVariables = {
HACK = "${config.home.homeDirectory}/hackin";
# TODO: remove this when neovim is installed.
EDITOR = "nvim";
VISUAL = "${EDITOR}";
SUDO_EDITOR = "${EDITOR}";
};
shellAbbrs = {

View file

@ -14,5 +14,11 @@ in {
home.packages = with pkgs; [
nvim-pkg
];
home.sessionVariables = rec {
EDITOR = "nvim";
VISUAL = "${EDITOR}";
SUDO_EDITOR = "${EDITOR}";
};
};
}