{ config, pkgs, lib, ... }: let isHM = config.home-manager.useHomeManager or false; in { ########################### # NIXOS SYSTEM CONFIG ########################### programs.zsh = { enable = true; enableCompletion = true; ohMyZsh = { enable = true; theme = ""; plugins = [ "git" "sudo" "extract" "colored-man-pages" "command-not-found" "history" "docker" "kubectl" ]; }; }; home.programs.zsh = lib.mkIf isHM { autocd = true; dotDir = "${config.xdg.configHome}/zsh"; autosuggestion.enable = true; syntaxHighlighting.enable = true; }; }