Regenerated

This commit is contained in:
2026-03-30 13:11:32 +00:00
parent 1aa1b0a021
commit 6690605575
3 changed files with 330 additions and 408 deletions
@@ -1,53 +1,27 @@
{ lib, config, pkgs, flakeRoot, ... }:
{ lib, pkgs, flakeRoot, ... }:
let
username = config.defaultUser or "henrov";
# Path to generated zsh config (optional)
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
in
{
#################################
# Install Zsh system-wide
# Install Zsh and Oh My Zsh system-wide
#################################
environment.systemPackages = [
pkgs.zsh
environment.systemPackages = with pkgs; [
zsh
oh-my-zsh
];
#################################
# Home Manager user configuration
# Optional: Deploy a custom .zshrc for all users
#################################
home-manager.users = {
${username} = {
programs.zsh = {
enable = true;
enableCompletion = true;
autocd = true;
# This will create /etc/zsh/.zshrc for all users
environment.etc."zshrc".source = generatedZsh;
oh-my-zsh = {
enable = true;
theme = "";
plugins = [
"git"
"sudo"
"extract"
"colored-man-pages"
"command-not-found"
"history"
"docker"
"kubectl"
];
};
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
};
# Use ~/.config/zsh as ZDOTDIR
home.sessionVariables = {
ZDOTDIR = "${config.homeDirectory}/.config/zsh";
};
# Deploy the generated .zshrc
home.file.".config/zsh/.zshrc".source = generatedZsh;
};
};
#################################
# Optional: Set default shell for all users
#################################
# You can enable this if you want
# users.extraUsers.<username>.shell = pkgs.zsh;
}