I’m confused. The package pkgs.zsh-autosuggestions provides the option programs.zsh.autosuggesetions.enable, and nix-darwin successfully installed pkgs.zsh-autosuggestions with darwin-rebuild switch, therefore nix-darwin should be configurable with programs.zsh.autosuggesetions.enable, shouldn’t it?
Packages do not provide options. Ever. Modules provide options, and they are specific to the system they correspond to (nixos, home-manager, nix-darwin, etc). Modules also generally install the related packages, rather than the other way around.
I don’t use nix-darwin, so I’m not sure, but I wouldn’t be surprised if it didn’t provide that configuration ability. I believe home-manager does, however, and you can use that on mac.
This builds perfectly fine. Maybe you’ve confused the zsh settings from man configuration.nix with the ones from man home-configuration.nix, happened to me quite often. Btw, make sure you check those manpages to validate whether or not some options are available to avoid hitting these errors.
FWIW I’ve also attempted to pin my nixpkgs input to nixos-23.11 but that was a catastrophe and I also started getting the error you’ve faced about autosuggestions missing from zsh. But I’m not an experienced Nix user to dig further into the problem, been using it for 2 months already and I’m still learning. However Nix is quite fail-proof in this regards, if you break something in an attempt you can just revert back any time.