home/direnv-auto-prune: only run if direnv has prunable state
This commit is contained in:
parent
e6d429a970
commit
0ceeb49c23
@ -8,6 +8,7 @@ in
|
|||||||
Unit = {
|
Unit = {
|
||||||
Description = "Prune unused allowed directories for direnv";
|
Description = "Prune unused allowed directories for direnv";
|
||||||
Documentation = [ "man:direnv(1)" ];
|
Documentation = [ "man:direnv(1)" ];
|
||||||
|
ConditionPathExists = "${config.xdg.dataHome}/direnv/allow";
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
|
Loading…
Reference in New Issue
Block a user