Question & Help wanted: duplicated elements in listOf option

Can you provide a smaller example or a full example with all files? Using the two files you provided it seems that there are several directories missing.

Even though you solved the issue it would be interesting to know what exactly went wrong. It was an unpleasant experience for you, but we can try to improve it so it does not happen again. It would go with the current campaign on improving Nix error messages: Proposal for improving Nix error messages