16 lines
212 B
Nix
16 lines
212 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
sshPort = config.hostSpec.networking.ports.tcp.ssh;
|
|
in
|
|
{
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ sshPort ];
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ sshPort ];
|
|
}
|