nix-config/config/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
579 B
Nix
Raw Normal View History

{ config, lib, ... }:
# this file contains default configuration that may be turned on depending on other config settings.
# options should go to modules.
2022-12-21 19:43:47 +01:00
lib.mkMerge [
{
assertions = [{
assertion = config.users.users.root.password == null;
message = "Root passwords not allowed in HQ";
}];
}
(lib.mkIf config.services.nginx.enable {
services.nginx = {
openFirewall = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
})
]