NixOS container cannot start ssh

I launched a nixos containers via

incus launch -n br0 -s lx1 images:nixos/25.05 ics-nix-0 -c security.nesting=true

Inside the container, after adding

services.openssh.enable = true; 

to /etc/nixos/configuraiton.nix and running ssh-keygen -A; nixos-rebuild switch , the sshd daemon is not running. running systemctl enable sshd inside this nixos container gives me the following error message:

Failed to enable unit: Unit sshd.service does not exist

However, there is indeed a link @sshd.service under the /etc/systemd/system` folder, not sure what cause this failure in spawning sshd, how should fix/workaround it?

Thank you!

Nixos does not spawn sshd, but systemd listens on port 22 and spawns it on request.

$ lsof -Pi|grep 22
systemd       1              root  53u  IPv6    87045      0t0  TCP *:22 (LISTEN)

```

It works as you mentione, thank you!