aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-07-01 19:34:36 +0200
committerKarel Kočí <cynerd@email.cz>2022-07-01 19:34:36 +0200
commit67a3c10e14b3da25798d4c62487e921759afd4ff (patch)
tree4cd594d7ed9527c286acaeb9e94837ff1e4869c3 /nixos
parentfbfb54ee41cfbdbbebf4c863034ab072c5bf1729 (diff)
downloadnixos-personal-67a3c10e14b3da25798d4c62487e921759afd4ff.tar.gz
nixos-personal-67a3c10e14b3da25798d4c62487e921759afd4ff.tar.bz2
nixos-personal-67a3c10e14b3da25798d4c62487e921759afd4ff.zip
nixos/modules/autounlock: fix missing luks-password
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/autounlock.nix4
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