From 99a600c25349575c268d2e90d315bd855ecb3b1b Mon Sep 17 00:00:00 2001 From: punkfairie Date: Tue, 27 May 2025 17:50:11 -0700 Subject: [PATCH] feat: man --- modules/home/profiles.nix | 1 + modules/home/programs/default.nix | 1 + .../cli/man/default.nix => modules/home/programs/man.nix | 9 ++++++--- 3 files changed, 8 insertions(+), 3 deletions(-) rename snowflake/modules/home/programs/cli/man/default.nix => modules/home/programs/man.nix (67%) diff --git a/modules/home/profiles.nix b/modules/home/profiles.nix index a6b13c5..453589f 100644 --- a/modules/home/profiles.nix +++ b/modules/home/profiles.nix @@ -25,6 +25,7 @@ in { jq = enabled; just = enabled; less = enabled; + man = enabled; nh = enabled; }; } diff --git a/modules/home/programs/default.nix b/modules/home/programs/default.nix index 984943b..5370ac1 100644 --- a/modules/home/programs/default.nix +++ b/modules/home/programs/default.nix @@ -19,6 +19,7 @@ ./jq.nix ./just.nix ./less.nix + ./man.nix ./nemo.nix ./nh.nix ./waybar.nix diff --git a/snowflake/modules/home/programs/cli/man/default.nix b/modules/home/programs/man.nix similarity index 67% rename from snowflake/modules/home/programs/cli/man/default.nix rename to modules/home/programs/man.nix index a5e04cd..9acf3ad 100644 --- a/snowflake/modules/home/programs/cli/man/default.nix +++ b/modules/home/programs/man.nix @@ -1,6 +1,6 @@ { - lib, config, + lib, ... }: let cfg = config.marleyos.programs.man; @@ -12,8 +12,11 @@ in { home.sessionVariables = { MANWIDTH = "80"; - # TODO: Only set this is nvim is installed. Also install plugin here? - MANPAGER = "nvim +NoNeckPain '+set nowrap' +Man!"; + + MANPAGER = + lib.mkIf + config.marleyos.programs.neovim.enable + "nvim +NoNeckPain '+set nowrap' +Man!"; }; }; }