add: sshd nix
This commit is contained in:
@@ -12,5 +12,6 @@
|
|||||||
./dunst.nix
|
./dunst.nix
|
||||||
./terminal
|
./terminal
|
||||||
./locale.nix
|
./locale.nix
|
||||||
|
# ./sshd.nix # uncomment if we want to enable ssh server
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
13
modules/sshd.nix
Normal file
13
modules/sshd.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
services.openssh.settings = {
|
||||||
|
PasswordAuthentication = true;
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user