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,
lib,
user,
inputs,
...
}:
let
zshConfigDir = "${config.xdg.configHome}/zsh"; # Define outside programs.zsh
zshConfigDir = "${toString config.home-manager.users.${user.name}.xdg.configHome}/zsh";
in
{
home-manager.users.${user.username} = {
home-manager.users.${user.name} = {
programs.zsh = {
enable = true;
enableCompletion = true;
dotDir = zshConfigDir; # Use the variable here
dotDir = zshConfigDir;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
@@ -23,7 +24,7 @@ in
"git"
"sudo"
"extract"
"colored-man-lpages"
"colored-man-pages"
"command-not-found"
"history"
"docker"