24 lines
638 B
Nix
24 lines
638 B
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
home-manager = {
|
|
sharedModules = [{
|
|
programs.zsh = {
|
|
enable = true;
|
|
autocd = true;
|
|
history = {
|
|
path = "$HOME/.local/share/zsh/history";
|
|
expireDuplicatesFirst = true;
|
|
};
|
|
historySubstringSearch.enable = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
};
|
|
}];
|
|
|
|
users = lib.attrsets.mapAttrs (user: config: ({
|
|
home.persistence."/persist${config.home}".directories = [ ".local/share/zsh" ];
|
|
})) (lib.attrsets.filterAttrs (name: config: config.isNormalUser) config.users.users);
|
|
};
|
|
}
|