1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix: cache nix-import-encrypted only on dev machines

This commit is contained in:
oddlama 2023-10-04 17:42:13 +02:00
parent ae0dcc3401
commit b40505f93c
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 5 additions and 2 deletions

View file

@ -23,7 +23,7 @@ new_name="$(sha512sum "$file")"
new_name="${new_name:0:32}-${basename//"/"/"%"}"
# Derive the path where the decrypted file will be stored
out="/var/tmp/nix-import-encrypted.$UID/$new_name"
out="/var/tmp/nix-import-encrypted/$UID/$new_name"
umask 077
mkdir -p "$(dirname "$out")"