Files
nix-config/hosts/common/optional/services/openssh.nix

11 lines
206 B
Nix

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