Ops.firewall_nix: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/ops.bend as Ops Lines 31-40 of near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/ops.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/ops.bend&start_line=31&end_line=40 import Base import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/type.bend as St def firewall_nix(f: St.Firewall) -> String: match f: case St.FirewallOff{}: " networking.applicationFirewall.enable = false;\n" case St.FirewallOn{a, b, c, d}: " networking.applicationFirewall.enable = true;\n" ++ " networking.applicationFirewall.allowSigned = " ++ nix_bool(a) ++ ";\n" ++ " networking.applicationFirewall.allowSignedApp = " ++ nix_bool(b) ++ ";\n" ++ " networking.applicationFirewall.blockAllIncoming = " ++ nix_bool(c) ++ ";\n" ++ " networking.applicationFirewall.enableStealthMode = " ++ nix_bool(d) ++ ";\n" Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/ops.bend&name=nix_bool https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/type.bend&name=Firewall