From 1e166c632be70acf344352b18625982fe64b3bc8 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Fri, 14 Feb 2025 12:45:06 +0000 Subject: [PATCH] Build bat cache on home manager rebuild. --- nix/pkgs/home.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/pkgs/home.nix b/nix/pkgs/home.nix index a8cfd36..d8f123c 100644 --- a/nix/pkgs/home.nix +++ b/nix/pkgs/home.nix @@ -1,6 +1,7 @@ { pkgs, config, + lib, neovim-flake, ... }: @@ -112,5 +113,8 @@ in ]; file = symlinkFiles; + activation.batCache = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + run ${pkgs.bat}/bin/bat cache --build + ''; }; }