Regenerated

This commit is contained in:
2026-03-26 19:30:11 +00:00
parent da79e7275d
commit e3b9fcf360
4 changed files with 24 additions and 30 deletions
@@ -4,7 +4,7 @@ let
#################################
# Read package list from config file
#################################
packagesConfPath = "${flakeRoot}/generated/.config/packages.conf";
packagesConfPath = "${flakeRoot}/generated/assets/packages.conf";
raw = builtins.readFile packagesConfPath;
rawLines = lib.splitString "\n" raw;
@@ -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;
}