Add opinioated defaults setting

This commit is contained in:
Sandro - 2022-12-22 23:30:02 +01:00
parent b18db1e3b4
commit a9d80c53ec
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 6 additions and 1 deletions

5
modules/default.nix Normal file
View File

@ -0,0 +1,5 @@
{ lib, ... }:
{
options.opinionatedDefaults = lib.mkEnableOption "opinionated defaults";
}

View File

@ -3,7 +3,7 @@
{
options.services.nginx.openFirewall = lib.mkOption {
type = lib.types.bool;
default = false;
default = config.opinionatedDefaults;
description = lib.mdDoc "Wether to open the firewall port for the http (80) and https (443) default ports.";
};