dotfiles/nixos/boxes/vpsfree1/ssh.nix

9 lines
166 B
Nix

{ config, pkgs, ... }:
let port = 2222;
in {
services.openssh = {
enable = true;
ports = [ port ];
};
networking.firewall.allowedTCPPorts = [ port ];
}