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!