facter does not work in the condition where you are using the readOnlyPkgs nixosModule (part of nixpkgs). Some check needs to be made to not override hostPlatform when using that module.
I noticed this issue a long time ago, it was a reason I avoided Facter and now that it was merged into nixpkgs I had to report it.