2022-07-12 12:33:52 +00:00
|
|
|
{ config, options, lib, pkgs, utils, modules, baseModules, extraModules, modulesPath, specialArgs, ... }:
|
2018-03-26 18:22:04 +00:00
|
|
|
|
2018-09-06 19:17:48 +00:00
|
|
|
let
|
2024-03-28 04:30:09 +00:00
|
|
|
inherit (lib)
|
|
|
|
cleanSourceFilter
|
|
|
|
concatMapStringsSep
|
|
|
|
evalModules
|
|
|
|
filter
|
|
|
|
functionArgs
|
|
|
|
hasSuffix
|
|
|
|
isAttrs
|
|
|
|
isDerivation
|
|
|
|
isFunction
|
|
|
|
isPath
|
|
|
|
literalExpression
|
|
|
|
mapAttrs
|
|
|
|
mkIf
|
|
|
|
mkMerge
|
|
|
|
mkOption
|
|
|
|
mkRemovedOptionModule
|
|
|
|
mkRenamedOptionModule
|
|
|
|
optional
|
|
|
|
optionalAttrs
|
|
|
|
optionals
|
|
|
|
partition
|
|
|
|
removePrefix
|
|
|
|
types
|
|
|
|
warn
|
|
|
|
;
|
2018-09-06 19:17:48 +00:00
|
|
|
|
|
|
|
cfg = config.documentation;
|
2021-10-03 16:06:03 +00:00
|
|
|
allOpts = options;
|
2018-09-06 19:17:48 +00:00
|
|
|
|
|
|
|
canCacheDocs = m:
|
2021-11-18 23:26:27 +00:00
|
|
|
let
|
2018-09-06 19:17:48 +00:00
|
|
|
f = import m;
|
|
|
|
instance = f (mapAttrs (n: _: abort "evaluating ${n} for `meta` failed") (functionArgs f));
|
2021-11-18 23:26:27 +00:00
|
|
|
in
|
2021-12-18 18:37:41 +00:00
|
|
|
cfg.nixos.options.splitBuild
|
2024-03-28 04:30:09 +00:00
|
|
|
&& isPath m
|
2021-11-18 23:26:27 +00:00
|
|
|
&& isFunction f
|
2018-09-06 19:17:48 +00:00
|
|
|
&& instance ? options
|
|
|
|
&& instance.meta.buildDocsInSandbox or true;
|
2021-11-18 23:26:27 +00:00
|
|
|
|
2018-09-06 19:17:48 +00:00
|
|
|
docModules =
|
2021-11-18 23:26:27 +00:00
|
|
|
let
|
2022-07-14 09:26:04 +00:00
|
|
|
p = partition canCacheDocs (baseModules ++ cfg.nixos.extraModules);
|
2021-11-18 23:26:27 +00:00
|
|
|
in
|
|
|
|
{
|
2018-09-06 19:17:48 +00:00
|
|
|
lazy = p.right;
|
|
|
|
eager = p.wrong ++ optionals cfg.nixos.includeAllModules (extraModules ++ modules);
|
2021-11-18 23:26:27 +00:00
|
|
|
};
|
|
|
|
|
2018-09-06 19:17:48 +00:00
|
|
|
manual = import ../../doc/manual rec {
|
|
|
|
inherit pkgs config;
|
|
|
|
version = config.system.nixos.release;
|
|
|
|
revision = "release-${version}";
|
2019-11-13 01:29:30 +00:00
|
|
|
extraSources = cfg.nixos.extraModuleSources;
|
2018-09-06 19:17:48 +00:00
|
|
|
options =
|
|
|
|
let
|
2021-12-02 18:19:56 +00:00
|
|
|
scrubbedEval = evalModules {
|
|
|
|
modules = [ {
|
|
|
|
_module.check = false;
|
|
|
|
} ] ++ docModules.eager;
|
2023-04-17 17:48:53 +00:00
|
|
|
class = "nixos";
|
2022-07-12 12:33:52 +00:00
|
|
|
specialArgs = specialArgs // {
|
2021-12-02 18:19:56 +00:00
|
|
|
pkgs = scrubDerivations "pkgs" pkgs;
|
|
|
|
# allow access to arbitrary options for eager modules, eg for getting
|
2019-11-13 01:29:30 +00:00
|
|
|
# option types from lazy modules
|
2021-10-03 16:06:03 +00:00
|
|
|
options = allOpts;
|
2021-12-02 18:19:56 +00:00
|
|
|
inherit modulesPath utils;
|
2021-11-18 23:26:27 +00:00
|
|
|
};
|
2018-09-06 19:17:48 +00:00
|
|
|
};
|
|
|
|
scrubDerivations = namePrefix: pkgSet: mapAttrs
|
|
|
|
(name: value:
|
2022-11-03 14:56:27 +00:00
|
|
|
let
|
|
|
|
wholeName = "${namePrefix}.${name}";
|
2024-03-28 04:30:09 +00:00
|
|
|
guard = warn "Attempt to evaluate package ${wholeName} in option documentation; this is not supported and will eventually be an error. Use `mkPackageOption{,MD}` or `literalExpression` instead.";
|
2022-11-03 14:56:27 +00:00
|
|
|
in if isAttrs value then
|
2018-09-06 19:17:48 +00:00
|
|
|
scrubDerivations wholeName value
|
2022-11-03 14:56:27 +00:00
|
|
|
// optionalAttrs (isDerivation value) {
|
|
|
|
outPath = guard "\${${wholeName}}";
|
2024-03-28 04:30:09 +00:00
|
|
|
drvPath = guard value.drvPath;
|
2022-11-03 14:56:27 +00:00
|
|
|
}
|
2018-09-06 19:17:48 +00:00
|
|
|
else value
|
|
|
|
)
|
|
|
|
pkgSet;
|
|
|
|
in scrubbedEval.options;
|
2022-10-28 15:05:03 +00:00
|
|
|
|
2021-11-18 23:26:27 +00:00
|
|
|
baseOptionsJSON =
|
|
|
|
let
|
2022-01-27 11:33:10 +00:00
|
|
|
filter =
|
2021-09-06 16:27:52 +00:00
|
|
|
builtins.filterSource
|
2021-11-18 23:26:27 +00:00
|
|
|
(n: t:
|
2022-04-08 12:19:30 +00:00
|
|
|
cleanSourceFilter n t
|
|
|
|
&& (t == "directory" -> baseNameOf n != "tests")
|
2019-12-10 01:51:19 +00:00
|
|
|
&& (t == "file" -> hasSuffix ".nix" n)
|
2021-11-18 23:26:27 +00:00
|
|
|
);
|
|
|
|
in
|
2021-09-06 16:27:52 +00:00
|
|
|
pkgs.runCommand "lazy-options.json" {
|
2022-10-28 15:05:03 +00:00
|
|
|
libPath = filter (pkgs.path + "/lib");
|
|
|
|
pkgsLibPath = filter (pkgs.path + "/pkgs/pkgs-lib");
|
|
|
|
nixosPath = filter (pkgs.path + "/nixos");
|
2024-04-21 14:53:29 +00:00
|
|
|
NIX_ABORT_ON_WARN = warningsAreErrors;
|
2023-12-31 17:08:46 +00:00
|
|
|
modules =
|
|
|
|
"[ "
|
|
|
|
+ concatMapStringsSep " " (p: ''"${removePrefix "${modulesPath}/" (toString p)}"'') docModules.lazy
|
|
|
|
+ " ]";
|
|
|
|
passAsFile = [ "modules" ];
|
2021-11-18 23:26:27 +00:00
|
|
|
} ''
|
2021-09-06 16:27:52 +00:00
|
|
|
export NIX_STORE_DIR=$TMPDIR/store
|
2019-11-13 01:29:30 +00:00
|
|
|
export NIX_STATE_DIR=$TMPDIR/state
|
2022-12-26 18:05:35 +00:00
|
|
|
${pkgs.buildPackages.nix}/bin/nix-instantiate \
|
2021-11-18 23:26:27 +00:00
|
|
|
--show-trace \
|
|
|
|
--eval --json --strict \
|
2018-09-06 19:17:48 +00:00
|
|
|
--argstr libPath "$libPath" \
|
|
|
|
--argstr pkgsLibPath "$pkgsLibPath" \
|
2019-11-13 01:29:30 +00:00
|
|
|
--argstr nixosPath "$nixosPath" \
|
2023-12-31 17:08:46 +00:00
|
|
|
--arg modules "import $modulesPath" \
|
2021-09-15 20:43:44 +00:00
|
|
|
--argstr stateVersion "${options.system.stateVersion.default}" \
|
2018-09-06 19:17:48 +00:00
|
|
|
--argstr release "${config.system.nixos.release}" \
|
2019-12-10 01:51:19 +00:00
|
|
|
$nixosPath/lib/eval-cacheable-options.nix > $out \
|
2021-11-18 23:26:27 +00:00
|
|
|
|| {
|
|
|
|
echo -en "\e[1;31m"
|
2021-09-06 16:27:52 +00:00
|
|
|
echo 'Cacheable portion of option doc build failed.'
|
2021-09-15 20:43:44 +00:00
|
|
|
echo 'Usually this means that an option attribute that ends up in documentation (eg' \
|
2019-11-13 01:29:30 +00:00
|
|
|
'`default` or `description`) depends on the restricted module arguments' \
|
2021-11-18 23:26:27 +00:00
|
|
|
'`config` or `pkgs`.'
|
|
|
|
echo
|
2021-09-06 16:27:52 +00:00
|
|
|
echo 'Rebuild your configuration with `--show-trace` to find the offending' \
|
|
|
|
'location. Remove the references to restricted arguments (eg by escaping' \
|
2018-09-23 19:34:36 +00:00
|
|
|
'their antiquotations or adding a `defaultText`) or disable the sandboxed' \
|
|
|
|
'build for the failing module by setting `meta.buildDocsInSandbox = false`.'
|
2021-11-18 23:26:27 +00:00
|
|
|
echo -en "\e[0m"
|
|
|
|
exit 1
|
|
|
|
} >&2
|
|
|
|
'';
|
2022-10-28 15:05:03 +00:00
|
|
|
|
2023-06-11 17:29:32 +00:00
|
|
|
inherit (cfg.nixos.options) warningsAreErrors;
|
2018-09-06 19:17:48 +00:00
|
|
|
};
|
|
|
|
|
2020-11-05 10:51:02 +00:00
|
|
|
|
|
|
|
nixos-help = let
|
|
|
|
helpScript = pkgs.writeShellScriptBin "nixos-help" ''
|
2018-09-06 19:17:48 +00:00
|
|
|
# Finds first executable browser in a colon-separated list.
|
|
|
|
# (see how xdg-open defines BROWSER)
|
|
|
|
browser="$(
|
|
|
|
IFS=: ; for b in $BROWSER; do
|
|
|
|
[ -n "$(type -P "$b" || true)" ] && echo "$b" && break
|
|
|
|
done
|
|
|
|
)"
|
|
|
|
if [ -z "$browser" ]; then
|
|
|
|
browser="$(type -P xdg-open || true)"
|
|
|
|
if [ -z "$browser" ]; then
|
2019-06-01 15:20:19 +00:00
|
|
|
browser="${pkgs.w3m-nographics}/bin/w3m"
|
2018-09-06 19:17:48 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
exec "$browser" ${manual.manualHTMLIndex}
|
|
|
|
'';
|
|
|
|
|
2020-11-05 10:51:02 +00:00
|
|
|
desktopItem = pkgs.makeDesktopItem {
|
|
|
|
name = "nixos-manual";
|
|
|
|
desktopName = "NixOS Manual";
|
2023-03-30 02:23:39 +00:00
|
|
|
genericName = "System Manual";
|
|
|
|
comment = "View NixOS documentation in a web browser";
|
2020-11-05 10:51:02 +00:00
|
|
|
icon = "nix-snowflake";
|
|
|
|
exec = "nixos-help";
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = ["System"];
|
2020-11-05 10:51:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in pkgs.symlinkJoin {
|
|
|
|
name = "nixos-help";
|
|
|
|
paths = [
|
|
|
|
helpScript
|
|
|
|
desktopItem
|
|
|
|
];
|
|
|
|
};
|
2018-09-06 19:17:48 +00:00
|
|
|
|
|
|
|
in
|
2018-03-26 18:22:04 +00:00
|
|
|
|
|
|
|
{
|
2019-12-10 01:51:19 +00:00
|
|
|
imports = [
|
2022-07-14 09:28:21 +00:00
|
|
|
./man-db.nix
|
|
|
|
./mandoc.nix
|
|
|
|
./assertions.nix
|
|
|
|
./meta.nix
|
|
|
|
../config/system-path.nix
|
|
|
|
../system/etc/etc.nix
|
2019-12-10 01:51:19 +00:00
|
|
|
(mkRenamedOptionModule [ "programs" "info" "enable" ] [ "documentation" "info" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "programs" "man" "enable" ] [ "documentation" "man" "enable" ])
|
|
|
|
(mkRenamedOptionModule [ "services" "nixosManual" "enable" ] [ "documentation" "nixos" "enable" ])
|
2023-06-11 17:29:32 +00:00
|
|
|
(mkRemovedOptionModule
|
|
|
|
[ "documentation" "nixos" "options" "allowDocBook" ]
|
|
|
|
"DocBook option documentation is no longer supported")
|
2019-12-10 01:51:19 +00:00
|
|
|
];
|
2018-03-26 18:22:04 +00:00
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
documentation = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2018-03-26 18:22:04 +00:00
|
|
|
Whether to install documentation of packages from
|
|
|
|
{option}`environment.systemPackages` into the generated system path.
|
2018-04-05 22:20:46 +00:00
|
|
|
|
|
|
|
See "Multiple-output packages" chapter in the nixpkgs manual for more info.
|
2018-03-26 18:22:04 +00:00
|
|
|
'';
|
2021-02-21 06:16:37 +00:00
|
|
|
# which is at ../../../doc/multiple-output.chapter.md
|
2018-03-26 18:22:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
man.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2021-09-24 17:20:23 +00:00
|
|
|
Whether to install manual pages.
|
|
|
|
This also includes `man` outputs.
|
2018-03-26 18:22:04 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-05-01 16:48:39 +00:00
|
|
|
man.generateCaches = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2021-09-24 17:20:23 +00:00
|
|
|
Whether to generate the manual page index caches.
|
|
|
|
This allows searching for a page or
|
2022-06-03 19:47:57 +00:00
|
|
|
keyword using utilities like {manpage}`apropos(1)`
|
|
|
|
and the `-k` option of
|
|
|
|
{manpage}`man(1)`.
|
2020-05-01 16:48:39 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2018-04-05 22:20:46 +00:00
|
|
|
info.enable = mkOption {
|
2018-03-26 18:22:04 +00:00
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2018-04-05 22:20:46 +00:00
|
|
|
Whether to install info pages and the {command}`info` command.
|
|
|
|
This also includes "info" outputs.
|
2018-03-26 18:22:04 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2018-04-05 22:20:46 +00:00
|
|
|
doc.enable = mkOption {
|
2018-03-26 18:22:04 +00:00
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2018-04-05 22:20:46 +00:00
|
|
|
Whether to install documentation distributed in packages' `/share/doc`.
|
|
|
|
Usually plain text and/or HTML.
|
|
|
|
This also includes "doc" outputs.
|
2018-03-26 18:22:04 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2018-04-05 22:27:46 +00:00
|
|
|
dev.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2018-04-05 22:27:46 +00:00
|
|
|
Whether to install documentation targeted at developers.
|
2022-06-03 19:47:57 +00:00
|
|
|
* This includes man pages targeted at developers if {option}`documentation.man.enable` is
|
|
|
|
set (this also includes "devman" outputs).
|
|
|
|
* This includes info pages targeted at developers if {option}`documentation.info.enable`
|
|
|
|
is set (this also includes "devinfo" outputs).
|
|
|
|
* This includes other pages targeted at developers if {option}`documentation.doc.enable`
|
|
|
|
is set (this also includes "devdoc" outputs).
|
2018-04-05 22:27:46 +00:00
|
|
|
'';
|
|
|
|
};
|
2018-04-05 22:20:46 +00:00
|
|
|
|
2018-09-06 19:17:48 +00:00
|
|
|
nixos.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2018-09-06 19:17:48 +00:00
|
|
|
Whether to install NixOS's own documentation.
|
2022-08-29 21:34:22 +00:00
|
|
|
|
2018-09-06 19:17:48 +00:00
|
|
|
- This includes man pages like
|
2021-09-15 20:43:44 +00:00
|
|
|
{manpage}`configuration.nix(5)` if {option}`documentation.man.enable` is
|
2018-09-06 19:17:48 +00:00
|
|
|
set.
|
|
|
|
- This includes the HTML manual and the {command}`nixos-help` command if
|
2021-09-15 20:43:44 +00:00
|
|
|
{option}`documentation.doc.enable` is set.
|
2018-09-06 19:17:48 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-07-14 09:26:04 +00:00
|
|
|
nixos.extraModules = mkOption {
|
|
|
|
type = types.listOf types.raw;
|
|
|
|
default = [];
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2022-07-14 09:26:04 +00:00
|
|
|
Modules for which to show options even when not imported.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2021-12-18 18:37:41 +00:00
|
|
|
nixos.options.splitBuild = mkOption {
|
2018-09-23 19:34:36 +00:00
|
|
|
type = types.bool;
|
2018-09-06 19:17:48 +00:00
|
|
|
default = true;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2021-09-06 16:27:52 +00:00
|
|
|
Whether to split the option docs build into a cacheable and an uncacheable part.
|
|
|
|
Splitting the build can substantially decrease the amount of time needed to build
|
2018-09-23 19:34:36 +00:00
|
|
|
the manual, but some user modules may be incompatible with this splitting.
|
2021-11-18 23:26:27 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2021-12-18 18:37:41 +00:00
|
|
|
nixos.options.warningsAreErrors = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2021-12-18 18:37:41 +00:00
|
|
|
Treat warning emitted during the option documentation build (eg for missing option
|
|
|
|
descriptions) as errors.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2018-09-23 19:34:36 +00:00
|
|
|
nixos.includeAllModules = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2018-09-23 19:34:36 +00:00
|
|
|
Whether the generated NixOS's documentation should include documentation for all
|
|
|
|
the options from all the NixOS modules included in the current
|
|
|
|
`configuration.nix`. Disabling this will make the manual
|
|
|
|
generator to ignore options defined outside of `baseModules`.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2019-11-13 01:29:30 +00:00
|
|
|
nixos.extraModuleSources = mkOption {
|
|
|
|
type = types.listOf (types.either types.path types.str);
|
|
|
|
default = [ ];
|
2024-03-28 04:30:09 +00:00
|
|
|
description = ''
|
2019-11-13 01:29:30 +00:00
|
|
|
Which extra NixOS module paths the generated NixOS's documentation should strip
|
|
|
|
from options.
|
|
|
|
'';
|
2021-10-03 16:06:03 +00:00
|
|
|
example = literalExpression ''
|
2019-11-13 01:29:30 +00:00
|
|
|
# e.g. with options from modules in ''${pkgs.customModules}/nix:
|
|
|
|
[ pkgs.customModules ]
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2018-03-26 18:22:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable (mkMerge [
|
2021-09-19 17:51:03 +00:00
|
|
|
{
|
|
|
|
assertions = [
|
|
|
|
{
|
|
|
|
assertion = !(cfg.man.man-db.enable && cfg.man.mandoc.enable);
|
|
|
|
message = ''
|
|
|
|
man-db and mandoc can't be used as the default man page viewer at the same time!
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
2018-03-26 18:22:04 +00:00
|
|
|
|
2021-09-19 17:51:03 +00:00
|
|
|
# The actual implementation for this lives in man-db.nix or mandoc.nix,
|
|
|
|
# depending on which backend is active.
|
2018-03-26 18:22:04 +00:00
|
|
|
(mkIf cfg.man.enable {
|
|
|
|
environment.pathsToLink = [ "/share/man" ];
|
2021-09-24 17:20:23 +00:00
|
|
|
environment.extraOutputsToInstall = [ "man" ] ++ optional cfg.dev.enable "devman";
|
2018-03-26 18:22:04 +00:00
|
|
|
})
|
|
|
|
|
2018-04-05 22:20:46 +00:00
|
|
|
(mkIf cfg.info.enable {
|
|
|
|
environment.systemPackages = [ pkgs.texinfoInteractive ];
|
|
|
|
environment.pathsToLink = [ "/share/info" ];
|
2018-05-05 08:41:28 +00:00
|
|
|
environment.extraOutputsToInstall = [ "info" ] ++ optional cfg.dev.enable "devinfo";
|
2018-08-15 09:59:44 +00:00
|
|
|
environment.extraSetup = ''
|
|
|
|
if [ -w $out/share/info ]; then
|
|
|
|
shopt -s nullglob
|
|
|
|
for i in $out/share/info/*.info $out/share/info/*.info.gz; do
|
2018-10-12 01:16:50 +00:00
|
|
|
${pkgs.buildPackages.texinfo}/bin/install-info $i $out/share/info/dir
|
2018-08-15 09:59:44 +00:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
'';
|
2018-04-05 22:20:46 +00:00
|
|
|
})
|
|
|
|
|
2018-03-26 18:22:04 +00:00
|
|
|
(mkIf cfg.doc.enable {
|
|
|
|
environment.pathsToLink = [ "/share/doc" ];
|
2018-05-05 08:41:28 +00:00
|
|
|
environment.extraOutputsToInstall = [ "doc" ] ++ optional cfg.dev.enable "devdoc";
|
2018-03-26 18:22:04 +00:00
|
|
|
})
|
|
|
|
|
2018-09-06 19:17:48 +00:00
|
|
|
(mkIf cfg.nixos.enable {
|
|
|
|
system.build.manual = manual;
|
|
|
|
|
|
|
|
environment.systemPackages = []
|
2023-08-12 15:47:43 +00:00
|
|
|
++ optional cfg.man.enable manual.nixos-configuration-reference-manpage
|
2021-07-24 04:50:01 +00:00
|
|
|
++ optionals cfg.doc.enable [ manual.manualHTML nixos-help ];
|
2018-09-06 19:17:48 +00:00
|
|
|
})
|
|
|
|
|
2018-03-26 18:22:04 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
}
|