flake/machines/nixos/imac-2017/machine-1/luks.nix
Guanran Wang 89f91afa4e
hardware: overhaul hardware configuration
- moved nvidia prime `xxxBusId` to machines specific configuration
- moved hostname config to flake.nix
- added per-machine configuration
  (example usage: multiple machines with same model)
2023-10-07 16:19:15 +08:00

14 lines
No EOL
375 B
Nix

{ ... }:
# I have no idea what are those options
# and I dont use LUKS on my main machine...
# Assuming those are LUKS stuff :P
#
# it just works(tm)
{
# Setup keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
boot.initrd.luks.devices."luks-998ea901-91c0-4c20-82f4-5dbcce1e1877".device = "/dev/disk/by-uuid/998ea901-91c0-4c20-82f4-5dbcce1e1877";
}