set homepager conditionaly

This commit is contained in:
Barrett Ruth 2026-02-10 23:09:51 -05:00
parent 2d030ab678
commit b35c85bd16
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -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!";
};