From 67a3c10e14b3da25798d4c62487e921759afd4ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 1 Jul 2022 19:34:36 +0200 Subject: nixos/modules/autounlock: fix missing luks-password --- nixos/modules/autounlock.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos/modules/autounlock.nix') 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 -- cgit v1.2.3