Skip to content

Instantly share code, notes, and snippets.

@tosmi
Last active September 22, 2016 13:31
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 tosmi/c2952c423e0449333dec33f8bd915210 to your computer and use it in GitHub Desktop.
Save tosmi/c2952c423e0449333dec33f8bd915210 to your computer and use it in GitHub Desktop.
nixos
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 1G 0 part
│ └─boot 254:1 0 1022M 0 crypt /boot
├─sda2 8:2 0 4G 0 part
└─sda3 8:3 0 227.9G 0 part
└─root 254:0 0 227.9G 0 crypt /nix/store
sr0 11:0 1 1024M 0 rom

lazara

  # 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 = "root"; device = "/dev/sda3"; } ];
  boot.initrd.postMountCommands = "cryptsetup luksOpen --key-file=/mnt-root/etc/crypto_keyfile_boot.bin /dev/sda1 boot";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment