{ config, pkgs, lib, flakeRoot, ... }: let username = config.defaultUser or "henrov"; generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc"; in { programs.zsh = { enable = true; enableCompletion = true; # Set Zsh dotfiles location dotDir = "${config.xdg.configHome}/zsh"; ohMyZsh = { enable = true; theme = ""; plugins = [ "git" "sudo" "extract" "colored-man-pages" "command-not-found" "history" "docker" "kubectl" ]; }; autosuggestions.enable = true; syntaxHighlighting.enable = true; # Load your generated .zshrc if it exists extraConfig = '' if [ -f "${generatedZsh}" ]; then source "${generatedZsh}" fi ''; }; }