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

This commit is contained in:
Oystein Kristoffer Tveit 2024-11-28 16:29:56 +01:00
parent e6d429a970
commit 0ceeb49c23
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

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 = {