rewrite firewall config

This commit is contained in:
2025-04-17 09:12:51 -05:00
parent 918eb71e7e
commit 9a52ee12cf
+5 -5
View File
@@ -90,10 +90,6 @@
];
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICNkZ5Xr75thR/tEgsASzYAtaA/kbsv2PKI8ux9rgpTe roydumblauskas@gmail.com"
];
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
@@ -119,7 +115,11 @@
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
# networking.firewall.enable = false;
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443 ];
};
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you