From bfcbd8c6aa04cbf52540135db971c6982b2cf97e Mon Sep 17 00:00:00 2001 From: twoneis Date: Mon, 6 May 2024 21:02:55 +0200 Subject: [PATCH] added swap --- devices/ellaca/disko.nix | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/devices/ellaca/disko.nix b/devices/ellaca/disko.nix index bca860b..f289c70 100644 --- a/devices/ellaca/disko.nix +++ b/devices/ellaca/disko.nix @@ -10,6 +10,7 @@ efi = { size = "512M"; type = "EF00"; + priority = 0; content = { type = "filesystem"; format = "vfat"; @@ -17,7 +18,7 @@ }; }; crypt = { - size = "100%"; + size = "-16G"; content = { type = "luks"; name = "crypt"; @@ -31,6 +32,13 @@ }; }; }; + swap = { + size = "100%"; + content = { + type = "swap"; + resumeDevice = true; + }; + }; }; }; }; @@ -40,19 +48,10 @@ content = { type = "gpt"; partitions = { - crypt = { + store = { size = "100%"; - content = { - type = "luks"; - name = "crypt"; - passwordFile = "/tmp/secret.key"; - settings = { - allowDiscards = true; - }; - content = { - type = "zfs"; - pool = "zstore"; - }; + type = "zfs"; + pool = "zstore"; }; }; };