Skip to content

Instantly share code, notes, and snippets.

@ottidmes
Created November 20, 2018 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ottidmes/3df68ff080a20b87131f9dca5829b7f2 to your computer and use it in GitHub Desktop.
Save ottidmes/3df68ff080a20b87131f9dca5829b7f2 to your computer and use it in GitHub Desktop.
{ 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