chore: split firewall config into separate files
This commit is contained in:
parent
ee54f41d16
commit
884d58742d
2 changed files with 8 additions and 9 deletions
|
|
@ -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
7
firewall.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 ];
|
||||
allowedUDPPorts = [ 22 80 443 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue