dotfiles/nixos/boxes/vpsfree1/ssh.nix

10 lines
166 B
Nix
Raw Normal View History

2022-10-30 19:12:52 +00:00
{ config, pkgs, ... }:
let port = 2222;
in {
services.openssh = {
enable = true;
ports = [ port ];
};
networking.firewall.allowedTCPPorts = [ port ];
}