Firewall rules

This commit is contained in:
ari committed 2024-08-19 11:17:37 -04:00
1 parent 3acdcd8d53
commit d41e5e7594
1 file changed
+13 -1
+13 -1
View File
@@ -1,5 +1,14 @@
{ user }:
{ pkgs, lib, config, ... }: {
{ pkgs, lib, config, ... }:
let
openPorts = [
5000
5001
8000
22
];
in
{
imports = [ ./hl-minipc1.hardware-configuration.nix ];
skyg.user.enabled = true;
skyg.nixos.common.ssh-server.enabled = true;
@@ -39,5 +48,8 @@
listenAddress = "0.0.0.0";
enableDelete = true;
};
# Firewall
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;
}