Files
nix-config/hosts/common/optional/services/openssh.nix
2025-02-16 06:35:32 +00:00

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 ];
}