Update zsh.nix
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user