services.openssh.startWhenNeeded
NixOS option
If set, sshd is socket-activated; that is, instead of having it permanently running as a daemon, systemd will start an instance for each incoming connection.
type: booleanDefault
declared in: nixos/modules/services/networking/ssh/sshd.nixView source on NixOS/nixpkgs →false