diff options
author | azahi <azat@bahawi.net> | 2025-01-24 04:11:25 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2025-01-24 04:11:25 +0300 |
commit | 865264328824e329d4d706af6bc370199ed2b188 (patch) | |
tree | c2d5b05e5b2abee8730f0dfbe35414c8a5d94a00 /modules/common/documentation.nix | |
parent | 2025-01-21 (diff) |
Diffstat (limited to 'modules/common/documentation.nix')
-rw-r--r-- | modules/common/documentation.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/modules/common/documentation.nix b/modules/common/documentation.nix index f9e0fcb..b28988d 100644 --- a/modules/common/documentation.nix +++ b/modules/common/documentation.nix @@ -7,23 +7,28 @@ }: { config = { - hm.manual = { - manpages.enable = this.isHeadful; - html.enable = false; - json.enable = false; + hm = { + manual = { + manpages.enable = this.isHeadful; + html.enable = false; + json.enable = false; + }; + + # Fixes a wierd issue with `direnv` and an unbound value. + home.sessionVariables.MANPATH = ""; }; documentation = { enable = this.isHeadful; dev.enable = true; doc.enable = false; - info.enable = false; + info.enable = true; nixos.enable = true; man.man-db.manualPages = (pkgs.buildEnv { name = "man-paths"; - paths = with config; environment.systemPackages ++ hm.home.packages; + paths = config.environment.systemPackages ++ config.hm.home.packages; pathsToLink = [ "/share/man" ]; extraOutputsToInstall = [ "man" ]; ignoreCollisions = true; |