From 568f5dfbc36cc5f256d4ae691623fef1653c3052 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 7 Jan 2024 15:40:18 +0100 Subject: [PATCH] Enable man pages for linux good for coding --- hosts/common/global/default.nix | 1 + hosts/common/global/documentation.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 hosts/common/global/documentation.nix diff --git a/hosts/common/global/default.nix b/hosts/common/global/default.nix index 6f66581..1981e29 100644 --- a/hosts/common/global/default.nix +++ b/hosts/common/global/default.nix @@ -14,6 +14,7 @@ ./nix.nix ./podman.nix ./power-button.nix + ./documentation.nix ] ++ (builtins.attrValues outputs.nixosModules); diff --git a/hosts/common/global/documentation.nix b/hosts/common/global/documentation.nix new file mode 100644 index 0000000..4cd518a --- /dev/null +++ b/hosts/common/global/documentation.nix @@ -0,0 +1,9 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs; [man-pages man-pages-posix]; + documentation.dev.enable = true; + documentation.man = { + # In order to enable to mandoc man-db has to be disabled. + man-db.enable = false; + mandoc.enable = true; + }; +}