fix cache dir sandbox path
This commit is contained in:
parent
3dc17a8295
commit
3e16c5a55d
|
@ -12,13 +12,14 @@ in
|
||||||
rekey.masterIdentities = [ ../users/sajenim/agenix-rekey.pub ];
|
rekey.masterIdentities = [ ../users/sajenim/agenix-rekey.pub ];
|
||||||
# Pubkey for rekeying
|
# Pubkey for rekeying
|
||||||
rekey.hostPubkey = ../../${hostname}/ssh_host_ed25519_key.pub;
|
rekey.hostPubkey = ../../${hostname}/ssh_host_ed25519_key.pub;
|
||||||
# As user not a trusted-users in our nix.conf
|
# Where we store the rekeyed secrets
|
||||||
# we must add age.rekey.cacheDir as a global extra sandbox path
|
|
||||||
rekey.cacheDir = "/var/tmp/agenix-rekey/\"$UID\"";
|
rekey.cacheDir = "/var/tmp/agenix-rekey/\"$UID\"";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Required to persist `/var/tmp/agenix-rekey`
|
# Required to persist `/var/tmp/agenix-rekey`
|
||||||
environment.persistence."/persist".directories = [
|
environment.persistence."/persist".directories = [
|
||||||
{ directory = "/var/tmp/agenix-rekey"; mode = "1777"; }
|
{ directory = "/var/tmp/agenix-rekey"; mode = "1777"; }
|
||||||
];
|
];
|
||||||
|
# As user not a trusted-users in our nix.conf
|
||||||
|
# we must add age.rekey.cacheDir as a global extra sandbox path
|
||||||
|
nix.settings.extra-sandbox-paths = [ "/var/tmp/agenix-rekey" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue