diff options
author | pennae <github@quasiparticle.net> | 2021-11-19 00:26:27 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-01-02 19:46:13 +0100 |
commit | fc614c37c653637e5475a0b0a987489b4d1f351d (patch) | |
tree | 7b2470a3a67979ddcc51f18bb0d424f8e95908b1 /nixos/modules/services/web-apps/gerrit.nix | |
parent | 55daffc1c943bddb71dc89a606f8284f6d50f5bd (diff) | |
download | nixlib-fc614c37c653637e5475a0b0a987489b4d1f351d.tar nixlib-fc614c37c653637e5475a0b0a987489b4d1f351d.tar.gz nixlib-fc614c37c653637e5475a0b0a987489b4d1f351d.tar.bz2 nixlib-fc614c37c653637e5475a0b0a987489b4d1f351d.tar.lz nixlib-fc614c37c653637e5475a0b0a987489b4d1f351d.tar.xz nixlib-fc614c37c653637e5475a0b0a987489b4d1f351d.tar.zst nixlib-fc614c37c653637e5475a0b0a987489b4d1f351d.zip |
nixos/documentation: split options doc build
most modules can be evaluated for their documentation in a very restricted environment that doesn't include all of nixpkgs. this evaluation can then be cached and reused for subsequent builds, merging only documentation that has changed into the cached set. since nixos ships with a large number of modules of which only a few are used in any given config this can save evaluation a huge percentage of nixos options available in any given config. in tests of this caching, despite having to copy most of nixos/, saves about 80% of the time needed to build the system manual, or about two second on the machine used for testing. build time for a full system config shrank from 9.4s to 7.4s, while turning documentation off entirely shortened the build to 7.1s.
Diffstat (limited to 'nixos/modules/services/web-apps/gerrit.nix')
-rw-r--r-- | nixos/modules/services/web-apps/gerrit.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/gerrit.nix b/nixos/modules/services/web-apps/gerrit.nix index 9ee9dbf1aa49..6bfc67368dd5 100644 --- a/nixos/modules/services/web-apps/gerrit.nix +++ b/nixos/modules/services/web-apps/gerrit.nix @@ -237,4 +237,6 @@ in }; meta.maintainers = with lib.maintainers; [ edef zimbatm ]; + # uses attributes of the linked package + meta.buildDocsInSandbox = false; } |