From 28700a038fa3ca4fc1c995675d643499211d96eb Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 11 Jan 2025 21:20:24 -0800 Subject: [PATCH] fix(home): Move setting neovim vars to neovim module --- modules/home/base/profile/default.nix | 10 ++-------- modules/home/programs/neovim/default.nix | 6 ++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/home/base/profile/default.nix b/modules/home/base/profile/default.nix index 95857e4..8e33a60 100644 --- a/modules/home/base/profile/default.nix +++ b/modules/home/base/profile/default.nix @@ -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 = { diff --git a/modules/home/programs/neovim/default.nix b/modules/home/programs/neovim/default.nix index ad315b7..ab4e29e 100644 --- a/modules/home/programs/neovim/default.nix +++ b/modules/home/programs/neovim/default.nix @@ -14,5 +14,11 @@ in { home.packages = with pkgs; [ nvim-pkg ]; + + home.sessionVariables = rec { + EDITOR = "nvim"; + VISUAL = "${EDITOR}"; + SUDO_EDITOR = "${EDITOR}"; + }; }; }