From 1fe4d168a708735ab7d30cd96c124e3ba2b34fa2 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 15 Jun 2020 09:23:25 +0200 Subject: [PATCH] decoysnail: use new luks.devices syntax --- decoysnail.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/decoysnail.nix b/decoysnail.nix index ee9ddac..55f278b 100644 --- a/decoysnail.nix +++ b/decoysnail.nix @@ -15,14 +15,13 @@ issue_discards = 1 } ''; - boot.initrd.luks.devices = [ - { - name = "sda_crypt"; + boot.initrd.luks.devices = { + sda_crypt = { device = "/dev/disk/by-partuuid/00292928-0088-4887-9e5d-2f2eccb4816f"; preLVM = true; allowDiscards = true; - } - ]; + }; + }; networking = { hostName = "decoysnail";