nixos/vault-agent: should care about /var/lib/vault-agent instead

This commit is contained in:
Luke Granger-Brown 2022-03-17 12:27:10 +00:00
parent b4b3484e6c
commit 702cd972ab

View file

@ -89,10 +89,10 @@ in
};
mounts = lib.optional (config.my.vault.bindMountStateTo != null) {
unitConfig.RequiresMountsFor = "${config.my.vault.bindMountStateTo} /var/lib/private/vault-agent";
unitConfig.RequiresMountsFor = "${config.my.vault.bindMountStateTo} /var/lib";
options = "bind";
what = config.my.vault.bindMountStateTo;
where = "/var/lib/private/vault-agent";
where = "/var/lib/vault-agent";
requiredBy = [ "vault-agent.service" ];
before = [ "vault-agent.service" ];
wantedBy = [ "vault-agent.service" ];