diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-05-12 18:03:16 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-05-12 18:03:16 +0900 |
commit | dc212c3c203f2fb9835ce2648888f8caf35e99dc (patch) | |
tree | 7bd8d0a7aecad613a56f29176a6d6f947316de43 /configuration.nix | |
parent | 1c2a3ebe9da70a85589c3adcf5087281a95ac7b4 (diff) | |
download | nixos-conf-dc212c3c203f2fb9835ce2648888f8caf35e99dc.tar.gz |
Host Element at than.loang.net
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/configuration.nix b/configuration.nix index 9e00c0a..fe0ab32 100644 --- a/configuration.nix +++ b/configuration.nix @@ -28,18 +28,11 @@ in { networking = { domain = "loang.net"; - firewall = { - allowedTCPPorts = [ - 80 # HTTP - 443 # TLS - 1965 # Gemini - 2211 # SSH - 4001 # IPFS - ]; - allowedUDPPorts = [ - 4001 # IPFS - ]; - }; + firewall.allowedTCPPorts = [ + 80 # HTTP + 443 # TLS + 1965 # Gemini + ]; hostName = "brno"; }; @@ -78,6 +71,7 @@ in { openssh = { enable = true; + openFirewall = true; passwordAuthentication = false; ports = [ 2211 ]; }; |