added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
27
nyx/hosts/hermes/encryption.nix
Normal file
27
nyx/hosts/hermes/encryption.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# mildly improves performance for the disk encryption
|
||||
boot.initrd.availableKernelModules = [
|
||||
"aesni_intel"
|
||||
"cryptd"
|
||||
"usb_storage"
|
||||
];
|
||||
|
||||
services.lvm.enable = lib.mkForce true;
|
||||
|
||||
boot.initrd.luks.devices."enc" = {
|
||||
# improve performance on ssds
|
||||
bypassWorkqueues = true;
|
||||
preLVM = true;
|
||||
|
||||
# the device with the maching id will be searched for the key file
|
||||
# keyFile = "/dev/disk/by-id/usb-Generic_Flash_Disk_B314B63E-0:0";
|
||||
# keyFileSize = 4096;
|
||||
|
||||
# if keyfile is not there, fall back to cryptsetup password
|
||||
fallbackToPassword = !config.boot.initrd.systemd.enable; # IMPLIED BY config.boot.initrd.systemd.enable
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue