Update zsh.nix

This commit is contained in:
2026-03-07 23:22:41 +01:00
parent 3a55272ec1
commit 539dfb9059
@@ -3,17 +3,18 @@
pkgs, pkgs,
lib, lib,
user, user,
inputs,
... ...
}: }:
let let
zshConfigDir = "${config.xdg.configHome}/zsh"; # Define outside programs.zsh zshConfigDir = "${toString config.home-manager.users.${user.name}.xdg.configHome}/zsh";
in in
{ {
home-manager.users.${user.username} = { home-manager.users.${user.name} = {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
dotDir = zshConfigDir; # Use the variable here dotDir = zshConfigDir;
autosuggestion.enable = true; autosuggestion.enable = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
oh-my-zsh = { oh-my-zsh = {
@@ -23,7 +24,7 @@ in
"git" "git"
"sudo" "sudo"
"extract" "extract"
"colored-man-lpages" "colored-man-pages"
"command-not-found" "command-not-found"
"history" "history"
"docker" "docker"