From 0f59a944bda43d256a68fb33e0c938302d77ecee Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 24 Nov 2024 00:26:52 +0100 Subject: [PATCH] update disk --- systems/omoikane/disk.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/systems/omoikane/disk.nix b/systems/omoikane/disk.nix index 55c0b6d..06fd1be 100644 --- a/systems/omoikane/disk.nix +++ b/systems/omoikane/disk.nix @@ -3,13 +3,13 @@ disko.devices = { disk = { main = { - device = "/dev/nvme0n1"; type = "disk"; + device = "/dev/nvme0n1"; content = { type = "gpt"; partitions = { ESP = { - end = "500M"; + size = "500M"; type = "EF00"; content = { type = "filesystem"; @@ -18,18 +18,16 @@ mountOptions = [ "umask=0077" ]; }; }; - root = { - name = "root"; - end = "-0"; + luks = { + size = "100%"; content = { type = "luks"; - name = "crypto"; - settings = { - allowDiscards = true; - }; + name = "crypted"; + settings.allowDiscards = true; + passwordFile = "/tmp/secret.key"; content = { type = "filesystem"; - format = "bcachefs"; + format = "ext4"; mountpoint = "/"; }; };