From 3a55272ec177834a46aee2cb46e8f8de3b29ea3b Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sat, 7 Mar 2026 23:21:51 +0100 Subject: [PATCH] Working on termonal stuff --- .../applications/terminal_shell/zsh.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Droidnix/generated/system/applications/terminal_shell/zsh.nix b/Droidnix/generated/system/applications/terminal_shell/zsh.nix index 100718e07..8f8ffffe6 100644 --- a/Droidnix/generated/system/applications/terminal_shell/zsh.nix +++ b/Droidnix/generated/system/applications/terminal_shell/zsh.nix @@ -5,12 +5,17 @@ user, ... }: +let + zshConfigDir = "${config.xdg.configHome}/zsh"; # Define outside programs.zsh +in { home-manager.users.${user.username} = { programs.zsh = { enable = true; enableCompletion = true; - dotDir = "${config.xdg.configHome}/zsh"; # Now correct: inside Home Manager scope + dotDir = zshConfigDir; # Use the variable here + autosuggestion.enable = true; + syntaxHighlighting.enable = true; oh-my-zsh = { enable = true; theme = ""; @@ -18,16 +23,20 @@ "git" "sudo" "extract" - "colored-man-pages" + "colored-man-lpages" "command-not-found" "history" "docker" "kubectl" ]; }; - autosuggestion.enable = true; - syntaxHighlighting.enable = true; - #zshoptions = [ "AUTO_CD" ]; }; + + # Set Zsh options (e.g., AUTO_CD) in .zshrc + xdg.configFile."zsh/.zshrc".text = lib.concatStringsSep "\n" [ + "setopt AUTO_CD" + "setopt CORRECT" + "setopt INTERACTIVE_COMMENTS" + ]; }; }