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: boolean
Default
false
declared in: nixos/modules/services/networking/ssh/sshd.nixView source on NixOS/nixpkgs →