Regenerated
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
||||
generatedZsh = "${config.home.file.".config/zsh/.zshrc".source}";
|
||||
in
|
||||
{
|
||||
programs.zsh = {
|
||||
@@ -25,16 +25,13 @@ in
|
||||
|
||||
autosuggestions.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
# Use initExtra instead of non-existent extraConfig
|
||||
initExtra = ''
|
||||
# Tell Zsh to use ~/.config/zsh as main config dir
|
||||
export ZDOTDIR="$HOME/.config/zsh"
|
||||
|
||||
# Source generated .zshrc if it exists
|
||||
if [ -f "${generatedZsh}" ]; then
|
||||
source "${generatedZsh}"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
# Set ZDOTDIR globally in the user environment
|
||||
home.sessionVariables = {
|
||||
ZDOTDIR = "${config.home.homeDirectory}/.config/zsh";
|
||||
};
|
||||
|
||||
# Place the generated .zshrc file there
|
||||
home.file.".config/zsh/.zshrc".source = generatedZsh;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user