Skip to content

Instantly share code, notes, and snippets.

@globin
Created March 13, 2015 14:46
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 globin/a4a346c36b434ce9c89b to your computer and use it in GitHub Desktop.
Save globin/a4a346c36b434ce9c89b to your computer and use it in GitHub Desktop.
ENABLE_CRYPTODISK grub2
{ config, pkgs, ... }:
{
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.enableCryptodisk = true;
boot.initrd.luks.devices = [ { name = "luksroot"; device = "/dev/sda2"; preLVM = true; } ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment