So according to this link and here too the ignoreAllDups option should be part of the history submodule
However, when I try setting it in my config it errors:
user@nixos:~/ > home-manager switch
error: The option `programs.zsh.history.ignoreAllDups' does not exist. Definition values:
- In `/home/user/.config/home-manager/home.nix': true
(use '--show-trace' to show detailed location information)
user@nixos:~/ >
Here’s my zsh section in home.nix for reference. Any help would be appreciated
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
dotDir = ".config/zsh";
history = {
ignoreAllDups = true;
path = "${config.xdg.dataHome}/zsh/history";
save = 10000;
size = 10000;
share = true;
};
historySubstringSearch = {
enable = true;
};
shellAliases = {
ls = "lsd -al";
};
oh-my-zsh = {
enable = true;
plugins = [ "zsh-syntax-highlighting" ];
theme = "powerlevel10k/powerlevel10k";
};
};