update
This commit is contained in:
parent
88a8168ce2
commit
e4fce0a17a
@ -1,14 +1,16 @@
|
|||||||
# SSH server
|
# SSH server
|
||||||
{
|
{ config, ... }: {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ports = [ 22 ];
|
ports = [ 22 ];
|
||||||
settings = {
|
settings = {
|
||||||
PasswordAuthentication = true;
|
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;
|
UseDns = true;
|
||||||
X11Forwarding = false;
|
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 ];
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# ./jellyfin.nix
|
./jellyfin.nix
|
||||||
# ./jellyseerr.nix
|
# ./jellyseerr.nix
|
||||||
# ./prowlarr.nix
|
# ./prowlarr.nix
|
||||||
# ./radarr.nix
|
# ./radarr.nix
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
};
|
};
|
||||||
transmission-script = {
|
transmission-script = {
|
||||||
mode = "0755";
|
mode = "0755";
|
||||||
path = "/home/hadi/transmission-script.sh";
|
path = "/home/jackflix/transmission-script.sh";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user