This commit is contained in:
death916 2025-05-15 03:48:34 -07:00
parent 1a69f5da78
commit a5f8f56768

View file

@ -2,17 +2,22 @@
{ config, pkgs, lib, ... }: # Use THIS `lib` for mkOutOfStoreSymlink
let
# Path to the directory containing the tmuxai package's default.nix
# --- DEBUGGING TRACE STATEMENTS (Keep these for now) ---
_ = builtins.trace "\n--- Debugging Home Manager Libs (home.nix LET block) ---" null;
_ = builtins.trace "Attributes in top-level lib: ${builtins.toString (builtins.attrNames lib)}" null;
_ = builtins.trace "Is mkOutOfStoreSymlink in top-level lib? ${toString (builtins.hasAttr "mkOutOfStoreSymlink" lib)}" null;
_ = builtins.trace "Attributes in config.lib: ${builtins.toString (builtins.attrNames config.lib)}" null;
_ = builtins.trace "Is mkOutOfStoreSymlink in config.lib? ${toString (builtins.hasAttr "mkOutOfStoreSymlink" config.lib)}" null;
_ = builtins.trace "--- End Debugging Home Manager Libs ---\n" null;
# --- END DEBUGGING ---
tmuxaiPackageDir = ../pkgs/tmuxai;
tmuxai-pkg = pkgs.callPackage tmuxaiPackageDir {
# Arguments for the new derivation (like glibc) will be picked from pkgs automatically by callPackage
};
# Path to your tmuxai configuration template
tmuxai-pkg = pkgs.callPackage tmuxaiPackageDir {};
tmuxaiConfigTemplatePath = ../pkgs/tmuxai/tmuxai-config.yaml;
in
{
_ = tmuxai-pkg; # Ensures let block (and traces) are evaluated
home.username = "death916";
home.homeDirectory = "/home/death916";
@ -119,7 +124,8 @@ in
};
xdg.configFile."tmuxai/config.yaml" = {
source = lib.mkOutOfStoreSymlink tmuxaiConfigTemplatePath; # Uses the top-level lib
# Using the top-level `lib` passed to this module
source = lib.mkOutOfStoreSymlink tmuxaiConfigTemplatePath;
};
home.sessionVariables = {