home/direnv-auto-prune: only run if direnv has prunable state

This commit is contained in:
2024-11-28 16:29:56 +01:00
parent e6d429a970
commit 0ceeb49c23

View File

@@ -8,6 +8,7 @@ in
Unit = {
Description = "Prune unused allowed directories for direnv";
Documentation = [ "man:direnv(1)" ];
ConditionPathExists = "${config.xdg.dataHome}/direnv/allow";
};
Service = {