summaryrefslogtreecommitdiff
path: root/modules/nixos/base/documentation.nix
blob: 986c6ee2017c34cf84cf16237e434c6ea6328bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.base.documentation;
  enable = config.base.enable && cfg.enable;
in
{
  config = lib.mkIf enable {
    documentation.nixos.enable = false;

    environment.systemPackages = with pkgs; [
      man-pages
      man-pages-posix
    ];
  };
}