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 ]; + }; +}