chore: split firewall config into separate files

This commit is contained in:
Khaïs COLIN 2024-08-22 16:38:49 +00:00
parent ee54f41d16
commit 884d58742d
2 changed files with 8 additions and 9 deletions

View file

@ -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 = {

7
firewall.nix Normal file
View file

@ -0,0 +1,7 @@
{
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443 ];
allowedUDPPorts = [ 22 80 443 ];
};
}