nixos-server-conf/shared/ssh.nix

17 lines
317 B
Nix
Raw Normal View History

{ config, lib, pkgs, modulesPath, ... }:
{
services = {
endlessh = {
enable = true;
port = 22;
};
openssh = {
enable = true;
ports = [ 23 ];
settings = {
AllowUsers = [ "dev" ];
};
};
};
}