Skip to content

Commit

Permalink
feat: darwin networking disable stealth
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Oct 11, 2023
1 parent 1f57175 commit dd1aff5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
8 changes: 7 additions & 1 deletion modules/darwin/suites/networking/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}:
let
inherit (lib) mkIf;
inherit (lib.internal) mkBoolOpt;
inherit (lib.internal) mkBoolOpt enabled;

cfg = config.khanelinix.suites.networking;
in
Expand All @@ -17,6 +17,12 @@ in
};

config = mkIf cfg.enable {
khanelinix = {
system = {
networking = enabled;
};
};

environment.systemPackages = with pkgs; [
# ifstat-legacy
nmap
Expand Down
8 changes: 0 additions & 8 deletions modules/darwin/system/interface/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ in
_FXShowPosixPathInTitle = true;
};

# firewall settings
alf = {
# 0 = disabled 1 = enabled 2 = blocks all connections except for essential services
globalstate = 1;
loggingenabled = 0;
stealthenabled = 1;
};

# dock settings
dock = {
# auto show and hide dock
Expand Down
10 changes: 10 additions & 0 deletions modules/darwin/system/networking/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,15 @@ in
networking = {
dns = [ "1.1.1.1" "8.8.8.8" ];
};

system.defaults = {
# firewall settings
alf = {
# 0 = disabled 1 = enabled 2 = blocks all connections except for essential services
globalstate = 1;
loggingenabled = 0;
stealthenabled = 0;
};
};
};
}

0 comments on commit dd1aff5

Please sign in to comment.