From 8b43938cf77bbeddec127a5398b5dba3578c4290 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 30 Apr 2023 13:59:54 +0200 Subject: [PATCH] luks-lvm: document secret.key newline --- example/luks-lvm.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/luks-lvm.nix b/example/luks-lvm.nix index c6340d0..ad07902 100644 --- a/example/luks-lvm.nix +++ b/example/luks-lvm.nix @@ -30,6 +30,8 @@ type = "luks"; name = "crypted"; extraOpenArgs = [ "--allow-discards" ]; + # if you want to use the key for interactive login be sure there is no trailing newline + # for example use `echo -n "password" > /tmp/secret.key` keyFile = "/tmp/secret.key"; content = { type = "lvm_pv";