Skip to content

Commit 66606a1

Browse files
committed
darwin/networking: enable application firewall config
basically defaults, but explicit
1 parent 33e64fc commit 66606a1

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

modules/darwin/system/networking/default.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ in
1616

1717
config = mkIf cfg.enable {
1818
networking = {
19+
applicationFirewall = {
20+
enable = true;
21+
22+
allowSignedApp = true;
23+
blockAllIncoming = false;
24+
enableStealthMode = false;
25+
};
26+
1927
dns = [
2028
"1.1.1.1"
2129
"1.0.0.1"

templates/snowfall/modules/darwin/system/networking/default.nix

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,18 @@ in
1616

1717
config = mkIf cfg.enable {
1818
networking = {
19+
applicationFirewall = {
20+
enable = true;
21+
22+
allowSignedApp = true;
23+
blockAllIncoming = false;
24+
enableStealthMode = false;
25+
};
26+
1927
dns = [
2028
"1.1.1.1"
2129
"8.8.8.8"
2230
];
2331
};
24-
25-
system.defaults = {
26-
# firewall settings
27-
alf = {
28-
# 0 = disabled 1 = enabled 2 = blocks all connections except for essential services
29-
globalstate = 1;
30-
loggingenabled = 0;
31-
stealthenabled = 0;
32-
};
33-
};
3432
};
3533
}

0 commit comments

Comments
 (0)