14 lines
170 B
Nix
14 lines
170 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: let
|
||
|
port = 2222;
|
||
|
in {
|
||
|
services.openssh = {
|
||
|
enable = true;
|
||
|
ports = [port];
|
||
|
};
|
||
|
networking.firewall.allowedTCPPorts = [port];
|
||
|
}
|