I’m looking at nix-darwin but there is no explanation on what it actually does
For some examples: you can manage your homebrew packages, set keyboard preferences, trackpad settings, updates, finder defaults, etc through the nix config.
https://daiderd.com/nix-darwin/manual/index.html#sec-options