diff options
author | tv <tv@krebsco.de> | 2020-06-16 20:03:01 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-06-16 20:03:01 +0200 |
commit | 15d1fb2627088149d1f46fc5946e1fc53b8f8d54 (patch) | |
tree | 27d37c1cc642087175c6699093dbd7a421bb5e57 /makefu/1systems/omo/hw | |
parent | eb60b27e2b89bc92bfccab35bb6937023df3b518 (diff) | |
parent | bde301139df5474a72f79122f81feab1d6387a07 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'makefu/1systems/omo/hw')
-rw-r--r-- | makefu/1systems/omo/hw/omo.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/makefu/1systems/omo/hw/omo.nix b/makefu/1systems/omo/hw/omo.nix index 87af2a314..586ad98c4 100644 --- a/makefu/1systems/omo/hw/omo.nix +++ b/makefu/1systems/omo/hw/omo.nix @@ -80,18 +80,19 @@ in { boot = { initrd.luks = { devices = let - usbkey = name: device: { - inherit name device keyFile; + usbkey = device: { + inherit device keyFile; keyFileSize = 4096; allowDiscards = true; }; - in [ - (usbkey "luksroot" rootPartition) - (usbkey "crypt0" cryptDisk0) - (usbkey "crypt1" cryptDisk1) - (usbkey "crypt2" cryptDisk2) - (usbkey "crypt3" cryptDisk3) - ]; + in + { + luksroot = usbkey rootPartition; + crypt0 = usbkey cryptDisk0; + crypt1 = usbkey cryptDisk1; + crypt2 = usbkey cryptDisk2; + crypt3 = usbkey cryptDisk3; + }; }; loader.grub.device = lib.mkForce rootDisk; |