24 lines
645 B
Nix
24 lines
645 B
Nix
{ user ? throw "user argument is required" }: { config, ... }:
|
|
|
|
let
|
|
hmConfig = config.home-manager.users."${user.name}";
|
|
in
|
|
{
|
|
home-manager.users."${user.name}" = {
|
|
programs.zsh = {
|
|
enable = true;
|
|
dotDir = "${hmConfig.xdg.relativeConfigHome}/zsh";
|
|
autocd = true;
|
|
history = {
|
|
path = "${hmConfig.xdg.dataHome}/zsh/history";
|
|
expireDuplicatesFirst = true;
|
|
};
|
|
historySubstringSearch.enable = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
};
|
|
|
|
home.persistence."/persist${user.home}".directories = [ "${hmConfig.xdg.relativeDataHome}/zsh" ];
|
|
};
|
|
}
|