update
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
# SSH server
|
||||
{
|
||||
{ config, ... }: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 22 ];
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ]
|
||||
AllowUsers =
|
||||
config.var.username; # Allows all users by default. Can be [ "user1" "user2" ]
|
||||
UseDns = true;
|
||||
X11Forwarding = false;
|
||||
PermitRootLogin = "no"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
|
||||
PermitRootLogin =
|
||||
"no"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
# ./jellyfin.nix
|
||||
./jellyfin.nix
|
||||
# ./jellyseerr.nix
|
||||
# ./prowlarr.nix
|
||||
# ./radarr.nix
|
||||
|
||||
Reference in New Issue
Block a user