diff options
author | Karel Kočí <cynerd@email.cz> | 2022-07-01 19:34:36 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-07-01 19:34:36 +0200 |
commit | 67a3c10e14b3da25798d4c62487e921759afd4ff (patch) | |
tree | 4cd594d7ed9527c286acaeb9e94837ff1e4869c3 | |
parent | fbfb54ee41cfbdbbebf4c863034ab072c5bf1729 (diff) | |
download | nixos-personal-67a3c10e14b3da25798d4c62487e921759afd4ff.tar.gz nixos-personal-67a3c10e14b3da25798d4c62487e921759afd4ff.tar.bz2 nixos-personal-67a3c10e14b3da25798d4c62487e921759afd4ff.zip |
nixos/modules/autounlock: fix missing luks-password
-rw-r--r-- | nixos/modules/autounlock.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/autounlock.nix b/nixos/modules/autounlock.nix index 2e40bb2..0458c7b 100644 --- a/nixos/modules/autounlock.nix +++ b/nixos/modules/autounlock.nix @@ -20,14 +20,14 @@ in { environment.systemPackages = [ pkgs.luks-hw-password ]; boot.initrd = { - extraFiles."/bin/luks-password" = pkgs.luks-hw-password + "/bin/luks-hw-password"; + extraFiles."/luks-hw-password".source = pkgs.luks-hw-password; luks.devices = mapAttrs (name: value: { device = value; keyFile = "/keys/${name}.key"; fallbackToPassword = true; preOpenCommands = '' mkdir -p /keys - luks-hw-password > /keys/${name}.key + /luks-hw-password/bin/luks-hw-password > /keys/${name}.key ''; postOpenCommands = '' rm -rf /keys |