From e5723023ea153358fae4acd9b5d186ec3e335e3a Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 13 Aug 2022 23:31:41 -0400 Subject: [PATCH] extracting networking --- modules/system/networking.nix | 10 ++++++++++ profiles/minimal.nix | 9 --------- 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 modules/system/networking.nix diff --git a/modules/system/networking.nix b/modules/system/networking.nix new file mode 100644 index 0000000..1ca75e4 --- /dev/null +++ b/modules/system/networking.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, ... }: { + networking = { + firewall = { + enable = true; + allowedTCPPorts = [ 443 80 ]; + allowedUDPPorts = [ 443 80 ]; + allowPing = false; + }; + }; +} diff --git a/profiles/minimal.nix b/profiles/minimal.nix index 7c4febf..000ff83 100644 --- a/profiles/minimal.nix +++ b/profiles/minimal.nix @@ -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;