{ config, lib, pkgs, this, ... }: { config = { hm.manual = { manpages.enable = this.isHeadful; html.enable = false; json.enable = false; }; documentation = { enable = this.isHeadful; dev.enable = true; doc.enable = false; info.enable = false; nixos.enable = true; man.man-db.manualPages = (pkgs.buildEnv { name = "man-paths"; paths = with config; environment.systemPackages ++ hm.home.packages; pathsToLink = [ "/share/man" ]; extraOutputsToInstall = [ "man" ]; ignoreCollisions = true; }).overrideAttrs (_: _: { __contentAddressed = true; }); }; environment.variables = { MANOPT = "--no-hyphenation"; MANPAGER = "${lib.getExe pkgs.less} -+F"; }; }; }