fix: hdd storage - do not unlock on boot, increase boot.loader.timeout

This commit is contained in:
Ryan Yin
2024-08-17 03:06:37 +08:00
parent e8be41f8e1
commit f1a5d419fb
4 changed files with 6 additions and 3 deletions

View File

@@ -26,6 +26,9 @@
fallbackToPassword = true;
allowDiscards = true;
};
# Whether to add a boot.initrd.luks.devices entry for the specified disk.
# This data disk is not needed to boot the system, so we don't need to unlock it in the initrd.
initrdUnlock = false;
# encrypt the root partition with luks2 and argon2id, will prompt for a passphrase, which will be used to unlock the partition.
# cryptsetup luksFormat

View File

@@ -16,7 +16,7 @@
../../base.nix
];
boot.loader.timeout = lib.mkForce 3; # wait for 3 seconds to select the boot entry
boot.loader.timeout = lib.mkForce 7; # wait for x seconds to select the boot entry
# Fix: jasper is marked as broken, refusing to evaluate.
environment.enableAllTerminfo = lib.mkForce false;
}

View File

@@ -15,5 +15,5 @@
../../base.nix
];
boot.loader.timeout = lib.mkForce 3; # wait for 3 seconds to select the boot entry
boot.loader.timeout = lib.mkForce 7; # wait for x seconds to select the boot entry
}

View File

@@ -3,5 +3,5 @@
../base
../../base.nix
];
boot.loader.timeout = lib.mkDefault 3; # wait for 3 seconds to select the boot entry
boot.loader.timeout = lib.mkForce 7; # wait for x seconds to select the boot entry
}