From 318376ddc549adbfd331895e704c30d078b97469 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Fri, 15 Sep 2023 12:14:50 -0500 Subject: [PATCH] chore: clean up templ queries Signed-off-by: jolheiser --- apps/nogui/helix.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/nogui/helix.nix b/apps/nogui/helix.nix index 4a1ec61..843e684 100644 --- a/apps/nogui/helix.nix +++ b/apps/nogui/helix.nix @@ -1,12 +1,13 @@ {pkgs, ...}: let - queries = pkgs.fetchFromGitea { - domain = "git.jojodev.com"; - owner = "jolheiser"; - repo = "templ-helix"; - rev = "2a47b9c5af0fd9ae8bba8198fd66abc6d07fdf10"; - sha256 = "sha256-pTdOX9bPup626t+ko6k3Xq/tprAMAZCUBl+xeIBkhfs="; - }; - query = scm: builtins.readFile (queries + "/queries/templ/${scm}.scm"); + query = scm: + builtins.readFile (pkgs.fetchFromGitea { + domain = "git.jojodev.com"; + owner = "jolheiser"; + repo = "templ-helix"; + rev = "2a47b9c5af0fd9ae8bba8198fd66abc6d07fdf10"; + sha256 = "sha256-pTdOX9bPup626t+ko6k3Xq/tprAMAZCUBl+xeIBkhfs="; + } + + "/queries/templ/${scm}.scm"); in { programs.helix = { enable = true;