Files
nix/users/configs/console/zsh/default.nix
Nikolaos Karaolidis 9dfbe1203d Add syncthing base
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2024-07-08 15:56:42 +03:00

26 lines
643 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" ];
};
}