From a2b68751b2c8ad46011560247df0a976491f4d43 Mon Sep 17 00:00:00 2001 From: Akulij Date: Sat, 15 Feb 2025 13:27:14 +0000 Subject: [PATCH] change disk configuration to match moved systemj --- disk-config.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/disk-config.nix b/disk-config.nix index a53282c..79edc49 100644 --- a/disk-config.nix +++ b/disk-config.nix @@ -3,7 +3,7 @@ disk = { main = { type = "disk"; - device = "/dev/nvme0n1"; + device = "/dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0W823875P"; content = { type = "gpt"; partitions = { @@ -16,17 +16,25 @@ mountpoint = "/boot"; }; }; - luks = { + system = { + size = "256G"; + content = { + type = "filesystem"; + format = "btrfs"; + mountpoint = "/"; + }; + }; + storage = { size = "100%"; content = { type = "luks"; - name = "crypted"; + name = "storage"; settings.allowDiscards = true; passwordFile = "/tmp/secret.key"; content = { type = "filesystem"; format = "btrfs"; - mountpoint = "/"; + mountpoint = "/storage"; # non-standard folder for unix-like, but good to avoid collisions }; }; };