Skip to content

Instantly share code, notes, and snippets.

/foo.nix Secret

Created February 19, 2018 23:54
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 anonymous/b9f535c172daa60fad0df484acb61bac to your computer and use it in GitHub Desktop.
Save anonymous/b9f535c172daa60fad0df484acb61bac to your computer and use it in GitHub Desktop.
boot.initrd.luks.devices =
let raidD = part: {
name = part ++ "_crypt";
device = "/dev/" ++ part;
keyFile = "/dev/nvme_luks/keyfile";
preLVM = false;
};
in [
{
name = "nvme_luks";
device = "/dev/disk/by-uuid/SOMEUUID";
preLVM = true;
allowDiscards = true;
}
] ++ (map raidD ["sda1" "sdb1" "sdc1" "sdd1" "sde1" "sdf1" "sdg1" "sdh1" "sdi1" "sdj1" "sdk1"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment