From 607c94488c14840909edcad787956fccca889c6e Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@leastauthority.com> Date: Mon, 5 Aug 2024 11:12:43 +0000 Subject: [PATCH] Explicitly tell Nix to not install any docs --- morph/lib/base.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/morph/lib/base.nix b/morph/lib/base.nix index 6731aaad..95b421e4 100644 --- a/morph/lib/base.nix +++ b/morph/lib/base.nix @@ -61,6 +61,17 @@ services.private-storage.monitoring.exporters.promtail.enable = true; + # Install no documentation on grid + # It seems 24.05 has some new defaults that aren't stripped away by the + # 'minimal' profile above. + # See https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/misc/documentation.nix + documentation.enable = false; + documentation.man.enable = false; + documentation.info.enable = false; + documentation.doc.enable = false; + documentation.dev.enable = false; + documentation.nixos.enable = false; + assertions = [ # This is a check to save somebody in the future trying to debug why # setting `nixpkgs.config` is not having an effect. -- GitLab