Modularize code
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autocd = true;
|
||||
history = {
|
||||
path = "$HOME/.local/share/zsh/history";
|
||||
expireDuplicatesFirst = true;
|
||||
};
|
||||
historySubstringSearch.enable = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
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);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user