Recreated options
This commit is contained in:
parent
0b839e082a
commit
fc8178ed80
22 changed files with 325 additions and 205 deletions
|
|
@ -3,13 +3,15 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.niksos.server;
|
||||
inherit (config.services.caddy) enable;
|
||||
inherit (lib) mkIf;
|
||||
in {
|
||||
services.caddy = {
|
||||
enable = cfg;
|
||||
email = "jurnwubben@gmail.com";
|
||||
enableReload = false;
|
||||
};
|
||||
config = mkIf enable {
|
||||
services.caddy = {
|
||||
email = "jurnwubben@gmail.com";
|
||||
enableReload = false;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = lib.mkIf cfg [80 443];
|
||||
networking.firewall.allowedTCPPorts = [80 443];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue