(Argh, replying to the list this time...)

2015-09-09 9:03 GMT+03:00 Bryan Gardiner <[email protected]>:
> On Tue, Sep 08, 2015 at 08:09:16PM +0100, Tomasz Czyż wrote:
[...]
>
> How about doing something like:
>
>     preLVMCommands =
>       let key = builtins.readFile ./keyfile; in
>       "echo '${key}' >/key"
>

Do note that by doing this, the key will get embedded somewhere in
/nix/store, with world-readable unix permissions.
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to