Passing in extra arguments to configuration.nix

The issue with incorrect config in the linked thread was with the comment preceding the one you linked. The pattern you use (and what I used as an example) is fine, just unnecessarily verbose. Well, in your case the verbosity is needed for your chosen approach but there are better ways as mentioned by Silvan and Jake. Plus the subjectively nicer, although more verbose option proposed by Valentin.

1 Like