laptop: enable removable boot

This commit is contained in:
Lgmrszd 2025-02-23 15:37:57 +04:00
parent 6752f29b5e
commit 3386acbc11
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 8 additions and 8 deletions

View file

@ -20,7 +20,7 @@ in
# https://nixos.org/manual/nixos/stable/#sec-installation
# boot.loader.efi.efiSysMountPoint = "/boot";
boot.loader.systemd-boot.enable = false;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.canTouchEfiVariables = false;
boot.loader.grub = {
enable = true;
device = "nodev";
@ -31,7 +31,8 @@ in
rev = "803c5df0e83aba61668777bb96d90ab8f6847106";
hash = "sha256-/bSolCta8GCZ4lP0u5NVqYQ9Y3ZooYCNdTwORNvR7M0=";
}}/src/catppuccin-macchiato-grub-theme/";
efiInstallAsRemovable = false;
efiInstallAsRemovable = true;
extraPerEntryConfig = "acpi ($drive1)//dsdt.aml";
# useOSProber = true;
extraEntries =
''
@ -90,7 +91,8 @@ in
# boot.initrd.luks.fido2Support = true;
boot.initrd.luks.devices = {
crypted = {
device = "/dev/disk/by-path/pci-0000:02:00.0-nvme-1";
# device = "/dev/disk/by-path/pci-0000:02:00.0-nvme-1";
device = "/dev/disk/by-label/NixCryptRoot";
preLVM = true;
crypttabExtraOpts = [ "fido2-device=auto" "token-timeout=10s" ];
# fido2.credential = "";