fix: macbook do not have a tpm2 device for luks auto unlock

Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
This commit is contained in:
Ryan Yin committed 2026-03-18 22:47:45 +08:00
1 parent f6aa45aa00
commit 4b5a7b1be7
2 files changed
+4 -3

No files matched your search

@@ -10,6 +10,10 @@
nixos-apple-silicon.nixosModules.default
];
# NOTE:macbook do not have a tpm2 device for luks auto unlock
# we have to enter the luks passphrase on boot, so remove login manager here to reduce the pain.
services.greetd.settings.default_session.command = lib.mkForce "$HOME/.wayland-session";
zramSwap.memoryPercent = lib.mkForce 75;
nix.settings = {
-3
View File
@@ -134,9 +134,6 @@ cryptsetup luksOpen /dev/nvme0n1p6 crypted-nixos
# show disk status
lsblk
# setup the automatic unlock via the tpm2 chip
systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7 /dev/nvme0n1p6
```
Formatting the root partition: