From 884d58742d81eb2b9d74bd87d38c4e7f028d9f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 22 Aug 2024 16:38:49 +0000 Subject: [PATCH] chore: split firewall config into separate files --- configuration.nix | 10 +--------- firewall.nix | 7 +++++++ 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 firewall.nix diff --git a/configuration.nix b/configuration.nix index 74cc94b..bf376f3 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,18 +2,10 @@ { pkgs, ... }: { imports = [ ./hardware-configuration.nix + ./firewall.nix ./sourcehut.nix ]; - environment.systemPackages = with pkgs; [ - ]; - - networking.firewall = { - enable = true; - allowedTCPPorts = [ 22 80 443 ]; - allowedUDPPorts = [ 22 80 443 ]; - }; - programs.git = { enable = true; config = { diff --git a/firewall.nix b/firewall.nix new file mode 100644 index 0000000..fe34e6c --- /dev/null +++ b/firewall.nix @@ -0,0 +1,7 @@ +{ + networking.firewall = { + enable = true; + allowedTCPPorts = [ 22 80 443 ]; + allowedUDPPorts = [ 22 80 443 ]; + }; +}