add networking rules

This commit is contained in:
Daylin Morgan 2023-05-03 22:38:07 -05:00
parent 417696048c
commit dd37a55211
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -6,6 +6,7 @@
]; ];
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
users.extraUsers = { users.extraUsers = {
daylin = { daylin = {
isNormalUser = true; isNormalUser = true;
@ -96,11 +97,14 @@
enableSSHSupport = true; enableSSHSupport = true;
}; };
# List services that you want to enable: # allow tcp connections for git.dayl.in (gitea)
networking.firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
};
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.permitRootLogin = "no";
users.mutableUsers = false; users.mutableUsers = false;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default