From e8c7befd8804c4d836d6ac4bcbbc37d337b77f53 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Wed, 14 Jan 2026 16:56:40 -0600 Subject: [PATCH] Clarify bcachefs auto-unlock comments and note root snapshot reset --- hosts/juni/hardware-mounts.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/hosts/juni/hardware-mounts.nix b/hosts/juni/hardware-mounts.nix index 4b933bf1..a7a5098d 100644 --- a/hosts/juni/hardware-mounts.nix +++ b/hosts/juni/hardware-mounts.nix @@ -108,6 +108,7 @@ lib.mkMerge [ serviceConfig.KeyringMode = "shared"; }; + # Resets my root to a fresh snapshot. I do this my simply moving root to an old snapshots directory boot.initrd.systemd.services.bcachefs-reset-root = { description = "Reset bcachefs root subvolume before pivot"; @@ -171,14 +172,8 @@ lib.mkMerge [ ''; }; }) - # If you mess up decruption password this reboots for retry instead of getting stuck - (lib.mkIf ENCRYPTED { - boot.kernelParams = [ - "rd.shell=0" - "rd.emergency=reboot" - ]; - }) - # Bcachefs auto decryption / unlock + # Bcachefs auto decryption / unlock (will use usb key if provided above, else just prompts password) + # We use this for password instead of the default one because default doesn't let you retry if you misstype the password (lib.mkIf ENCRYPTED { boot.supportedFilesystems = [ "bcachefs"