NixOS module configuration improvements #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch has three different configuration improvements. The first is that it provides declarative configuration for system settings, in addition to the
config.yamlfile. This can be used, for instance, to enable SSO login:The second improvement is to restore the recently-deleted
serverBindoption; it was replaced withbindIpandbindPortsettings, but the latter cannot be used to specify a Unix socket such as:Finally, I replaced the
siteUrlandallowedHostssettings withconfig.site_urlandconfig.allowed_hostsrespectively. Having the settings as environment variables was causing the default values to override the explicit settings I had put inconfig; now, they are only set in one place. (I usedlib.mkRenamedOptionModuleto not break any existing configurations and allow the old option name to continue working.)