From 6fff95981bfef5527518fbebac879c71877810ff Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 12 Jun 2025 12:46:14 -0700 Subject: pass `self` to the home-manager modules This is to avoid using relative paths, which is always annoying to get right. --- nix/users/fcuny/llm.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nix/users/fcuny/llm.nix') diff --git a/nix/users/fcuny/llm.nix b/nix/users/fcuny/llm.nix index c41bf04..0c6c072 100644 --- a/nix/users/fcuny/llm.nix +++ b/nix/users/fcuny/llm.nix @@ -1,13 +1,13 @@ -{ ... }: +{ self, ... }: { home.file.".config/llm/templates/pr-prompt.yaml".text = - builtins.readFile ../../../configs/llm/templates/pr-prompt.yaml; + builtins.readFile "${self}/configs/llm/templates/pr-prompt.yaml"; home.file.".config/llm/templates/commit-prompt.yaml".text = - builtins.readFile ../../../configs/llm/templates/commit-prompt.yaml; + builtins.readFile "${self}/configs/llm/templates/commit-prompt.yaml"; home.file.".config/llm/templates/readme-gen.yaml".text = - builtins.readFile ../../../configs/llm/templates/readme-gen.yaml; + builtins.readFile "${self}/configs/llm/templates/readme-gen.yaml"; programs.fish = { shellAliases = { -- cgit v1.2.3