-
-
Save ottidmes/3df68ff080a20b87131f9dca5829b7f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
boot.initrd = { | |
availableKernelModules = [ | |
"aes" | |
"aes_generic" | |
"aes_x86_64" | |
"blowfish" | |
"cbc" | |
"cryptd" | |
"dm_crypt" | |
"dm_mod" | |
"ecb" | |
"lrw" | |
"serpent" | |
"sha1" | |
"sha256" | |
"sha512" | |
"twofish" | |
"xts" | |
]; | |
extraUtilsCommands = '' | |
copy_bin_and_libs ${pkgs.cryptsetup}/bin/cryptsetup | |
''; | |
preLVMCommands = '' | |
cryptsetup luksOpen /dev/disk/by-uuid/ab525ac9-88aa-4b7b-9997-1600252aff6a luksroot --allow-discards | |
''; | |
}; | |
environment.systemPackages = with pkgs; [ cryptsetup ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment