Files
vmimages/hosts/ssh.nix
2023-11-29 21:08:18 +00:00

17 lines
244 B
Nix

{
lib,
pkgs,
config,
...
}:{
#define option to enable this
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
};
networking.firewall.allowedTCPPorts = [22];
}