extracting networking
This commit is contained in:
parent
565b94126f
commit
e5723023ea
10
modules/system/networking.nix
Normal file
10
modules/system/networking.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, pkgs, ... }: {
|
||||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 443 80 ];
|
||||
allowedUDPPorts = [ 443 80 ];
|
||||
allowPing = false;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Reference in New Issue
Block a user