This is my personal nixos config, using flakes for the central config file.
NOTE: The two helper scripts assume the hostname is already set, so to use with a specific host you would need to manually run nixos-rebuild at least once to set the initial configuration.