-
-
Save MrChico/bbff6c7c9b2a07b03110b860f8042813 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
boot.loader.efi.canTouchEfiVariables = true; | |
boot.loader.efi.efiSysMountPoint = "/boot/efi"; | |
boot.loader.grub = { | |
enable = true; | |
device = "nodev"; | |
version = 2; | |
efiSupport = true; | |
enableCryptodisk = true; | |
extraInitrd = /boot/initrd.keys.gz; | |
}; | |
boot.initrd.luks.devices = [ | |
{ | |
name = "root"; | |
device = "/dev/disk/by-uuid/a8b302cf-5296-4a2e-a7ba-707e6fa75123"; # UUID for /dev/nvme01np2 | |
preLVM = true; | |
keyFile = "/keyfile0.bin"; | |
allowDiscards = true; | |
} | |
]; | |
# Data mount | |
fileSystems."/data" = { | |
device = "/dev/disk/by-uuid/79630267-5766-4c7d-85a5-1d5f1dcd58ad"; # UUID for /dev/mapper/crypted-data | |
encrypted = { | |
enable = true; | |
label = "crypted-data"; | |
blkDev = "/dev/disk/by-uuid/3476cb09-b3c4-4301-9ec9-84f60f32828a"; # UUID for /dev/sda1 | |
keyFile = "/keyfile1.bin"; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment