From b35c85bd1685663b4f5dba08d07fc5efa6a66948 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 10 Feb 2026 23:09:51 -0500 Subject: [PATCH] set homepager conditionaly --- home/modules/editor.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/modules/editor.nix b/home/modules/editor.nix index 80fc949..82bd8c5 100644 --- a/home/modules/editor.nix +++ b/home/modules/editor.nix @@ -1,5 +1,8 @@ -{ pkgs, config, ... }: +{ pkgs, lib, config, ... }: +let + neovim = config.programs.neovim.enable; +in { home.packages = with pkgs; [ # lsp @@ -44,7 +47,7 @@ defaultEditor = true; }; - home.sessionVariables = { + home.sessionVariables = lib.mkIf neovim { MANPAGER = "nvim +Man!"; };