decoysnail: use new luks.devices syntax

This commit is contained in:
Gabriel Ebner 2020-06-15 09:23:25 +02:00
parent 5147ecfd8c
commit 1fe4d168a7

@ -15,14 +15,13 @@
issue_discards = 1 issue_discards = 1
} }
''; '';
boot.initrd.luks.devices = [ boot.initrd.luks.devices = {
{ sda_crypt = {
name = "sda_crypt";
device = "/dev/disk/by-partuuid/00292928-0088-4887-9e5d-2f2eccb4816f"; device = "/dev/disk/by-partuuid/00292928-0088-4887-9e5d-2f2eccb4816f";
preLVM = true; preLVM = true;
allowDiscards = true; allowDiscards = true;
} };
]; };
networking = { networking = {
hostName = "decoysnail"; hostName = "decoysnail";