From 1de7e593932c23815ca807163a09e1efd576fdb0 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Tue, 29 Oct 2024 21:27:57 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(man):=20Configure=20man?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/default.nix | 1 + home/man/default.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 home/man/default.nix diff --git a/home/default.nix b/home/default.nix index 42c54f5..c335156 100644 --- a/home/default.nix +++ b/home/default.nix @@ -37,6 +37,7 @@ ./fish ./gh ./hyfetch + ./man ./syncthing ./wget ./xdg diff --git a/home/man/default.nix b/home/man/default.nix new file mode 100644 index 0000000..28e7d87 --- /dev/null +++ b/home/man/default.nix @@ -0,0 +1,14 @@ +{ + 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!' + ''; + }; +}