From 3b74d3c5d8c82115316bf2f720186be36a51f06d Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Sun, 14 Dec 2025 15:57:19 -0600 Subject: [PATCH] try to use keyctl --- hosts/i001/hardware-mounts.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/i001/hardware-mounts.nix b/hosts/i001/hardware-mounts.nix index 37b964c0..b50ca8d7 100644 --- a/hosts/i001/hardware-mounts.nix +++ b/hosts/i001/hardware-mounts.nix @@ -89,7 +89,7 @@ in # PRIMARY unencrypt boot.initrd.systemd.enable = true; - boot.initrd.systemd.packages = [ pkgs.keyutils ]; + boot.initrd.systemd.storePaths = [ pkgs.keyutils ]; boot.supportedFilesystems = [ "bcachefs" "vfat" @@ -128,7 +128,7 @@ in # but uses a key file from the USB stick instead of systemd-ask-password. script = '' echo "Using test password..." - keyctl link @u @s + ${pkgs.keyutils}/bin/keyctl link @u @s echo "test" | ${pkgs.bcachefs-tools}/bin/bcachefs unlock -k session "${PRIMARY}" echo "bcachefs unlock successful for ${PRIMARY}" '';