mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-11 04:48:25 -07:00
tmuxai
This commit is contained in:
parent
1a69f5da78
commit
a5f8f56768
1 changed files with 14 additions and 8 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue