mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
handle /run/secrets more gracefully if its a directory
This commit is contained in:
parent
74b9fe5d7f
commit
f214c1b76c
2 changed files with 30 additions and 25 deletions
|
|
@ -170,6 +170,9 @@ in
|
|||
boot.initrd.postDeviceCommands = ''
|
||||
cp -r ${testAssets + "/age-keys.txt"} /run/age-keys.txt
|
||||
chmod -R 700 /run/age-keys.txt
|
||||
|
||||
# if the directory exists, sops-nix should replace it with a symlink
|
||||
mkdir /run/secrets
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue