From 0ceeb49c23b194ef05ce4ebca6ec21d48f248790 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 28 Nov 2024 16:29:56 +0100 Subject: [PATCH] home/direnv-auto-prune: only run if direnv has prunable state --- home/programs/direnv/auto-prune.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/programs/direnv/auto-prune.nix b/home/programs/direnv/auto-prune.nix index 4472789..c2fbc47 100644 --- a/home/programs/direnv/auto-prune.nix +++ b/home/programs/direnv/auto-prune.nix @@ -8,6 +8,7 @@ in Unit = { Description = "Prune unused allowed directories for direnv"; Documentation = [ "man:direnv(1)" ]; + ConditionPathExists = "${config.xdg.dataHome}/direnv/allow"; }; Service = {