documentation.nixos.includeAllModules always rebuilds

To have documentation of my own modules, I use documentation.nixos.includeAllModules = true;, but that causes a manuals build on every deploy, even if nothing changed.

Does anybody know why this is happening and if there’s something that can be done to prevent it?

Are you sure that nothing has changed?

I just added it to my configuration and rebuild twice in a row.

First build took about 5 minutes building about 30 extra paths, while the second run did finish within seconds and did not create any new store paths.

:thinking: hmm actually, you’re right that a straight same config doesn’t rebuild, but when I change a small script file that isn’t mentioned in the docs, it does rebuild the manual.

I’m guessing that any change eventually hits a config change and that results in a rebuild?