From 95f1f232bec2bb80633b5bced78405c7f3e05df5 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Wed, 30 Oct 2024 20:40:39 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(man):=20Define=20env=20vars=20?= =?UTF-8?q?independently=20of=20shell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/man/default.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/home/man/default.nix b/home/man/default.nix index 28e7d87..54e6fbc 100644 --- a/home/man/default.nix +++ b/home/man/default.nix @@ -1,14 +1,8 @@ -{ - lib, - config, - ... -}: { +{...}: { programs.man.enable = true; - programs.fish = lib.mkIf config.programs.fish.enable { - interactiveShellInit = '' - set -gx MANWIDTH 80 - set -gx MANPAGER 'nvim +NoNeckPain "+set nowrap" +Man!' - ''; + home.sessionVariables = { + MANWIDTH = "80"; + MANPAGER = "nvim +NoNeckPain '+set nowrap' +Man!"; }; }