This sort of code breaks config.{allowBroken, allowUnsupportedSystem} = true by making them do unpredictable things.
service.nixosManual
documentation.nixos