mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-16 17:10:45 -06:00
add networking rules
This commit is contained in:
parent
417696048c
commit
dd37a55211
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue