modularized firewall logic
This commit is contained in:
@@ -6,7 +6,6 @@ in
|
||||
{
|
||||
options.my.servers.microbin = setup.mkOptions "microbin" "copy" 8086;
|
||||
config = lib.mkIf config.my.servers.microbin.enable {
|
||||
networking.firewall.allowedTCPPorts = lib.mkIf (!cfg.isLocal) [ cfg.port ];
|
||||
services = {
|
||||
microbin = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user