extracting networking

This commit is contained in:
James Patrick 2022-08-13 23:31:41 -04:00
parent 565b94126f
commit e5723023ea
2 changed files with 10 additions and 9 deletions

View File

@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }: {
networking = {
firewall = {
enable = true;
allowedTCPPorts = [ 443 80 ];
allowedUDPPorts = [ 443 80 ];
allowPing = false;
};
};
}

View File

@ -10,15 +10,6 @@ in {
# These are the most basic tools I need.
environment.systemPackages = with pkgs; [ nixfmt git gnumake vim zsh ];
networking = {
firewall = {
enable = true;
allowedTCPPorts = [ 443 80 ];
allowedUDPPorts = [ 443 80 ];
allowPing = false;
};
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;