I assume that since configuration.nix is declarative not imperative, then the order in which you list the various properties doesn’t matter.
But just want to verify - are there any order-dependent properties in configuration.nix that need to come before others?
Within the file, order of declarations does not matter, and generally all attribute-set typed declarations are unordered. In most lists order is not important in practice, but really this depends on the specific case - lists are inherently ordered and sometimes this is put to good use. One example are overlays, or configuration options that are evaluated in order (such as filters with wildcards, thinking of
ssh config here).