feat: merge own wsl config

This commit is contained in:
2026-02-28 01:57:42 +00:00
parent 4e2264dc03
commit bf41ee6e0a
14 changed files with 272 additions and 129 deletions

View File

@@ -21,31 +21,35 @@ in {
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
home-manager.users.root = {
home.stateVersion = lib.mkDefault "25.05";
# Share the same zsh config with all home-manager users
home-manager.sharedModules = [
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history = {
size = 10000;
path = "$HOME/.zsh/.zsh_history";
};
history = {
size = 10000;
path = "$HOME/.zsh/.zsh_history";
oh-my-zsh = {
enable = true;
theme = "terminalparty";
};
shellAliases = self.lib.sharedShellAliases;
initContent = ''
set -ovi
'';
};
}
];
oh-my-zsh = {
enable = true;
theme = "terminalparty";
};
shellAliases = self.lib.sharedShellAliases;
initContent = ''
set -ovi
'';
};
};
# Still define root for stateVersion; config comes from sharedModules
home-manager.users.root.home.stateVersion = lib.mkDefault "25.05";
};
}