Clean up common user modules
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
19
users/configs/zsh/default.nix
Normal file
19
users/configs/zsh/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ user ? throw "user argument is required" }: { ... }:
|
||||
|
||||
{
|
||||
home-manager.users."${user.name}" = {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autocd = true;
|
||||
history = {
|
||||
path = "${user.home}/.local/share/zsh/history";
|
||||
expireDuplicatesFirst = true;
|
||||
};
|
||||
historySubstringSearch.enable = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
};
|
||||
|
||||
home.persistence."/persist${user.home}".directories = [ ".local/share/zsh" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user