Newbie trying to set up zsh on nix-darwin.
# ~/.nixpkgs/darwin-configuration.nix
{ config, lib, pkgs, ... }:
{
environment.systemPackages = [ pkgs.zsh-autosuggestions ];
services.nix-daemon.enable = true;
programs.zsh.enable = true;
# programs.zsh.enableAutosuggestions = true;
# programs.zsh.autosuggestions.enable = true;
system.stateVersion = 4;
}
The option programs.zsh.autosuggestions.enable
is in the official doc, and programs.zsh.enableAutosuggestions
should also work.
But neither works on my Monetery:
$ darwin-rebuild switch
building the system configuration...
error: The option `programs.zsh.autosuggestions' does not exist. Definition values:
- In `/Users/me/.nixpkgs/darwin-configuration.nix':
{
enable = true;
}
(use '--show-trace' to show detailed location information)
$ darwin-option programs.zsh
enable
enableBashCompletion
enableCompletion
enableFzfCompletion
enableFzfGit
enableFzfHistory
enableSyntaxHighlighting
interactiveShellInit
loginShellInit
promptInit
shellInit
variables
Any help is appreciated.