mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-13 16:12:40 +02:00
fix: hdd storage - do not unlock on boot, increase boot.loader.timeout
This commit is contained in:
@@ -26,6 +26,9 @@
|
|||||||
fallbackToPassword = true;
|
fallbackToPassword = true;
|
||||||
allowDiscards = 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.
|
# encrypt the root partition with luks2 and argon2id, will prompt for a passphrase, which will be used to unlock the partition.
|
||||||
# cryptsetup luksFormat
|
# cryptsetup luksFormat
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
../../base.nix
|
../../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.
|
# Fix: jasper is marked as broken, refusing to evaluate.
|
||||||
environment.enableAllTerminfo = lib.mkForce false;
|
environment.enableAllTerminfo = lib.mkForce false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,5 +15,5 @@
|
|||||||
../../base.nix
|
../../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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
../base
|
../base
|
||||||
../../base.nix
|
../../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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user