From 8b3e652b40f4a9db6a57bd132033dab659f98626 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Mon, 11 Aug 2025 12:26:46 +0200 Subject: [PATCH] Restore disko configuration with proper device path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use /dev/nvme0n1 instead of placeholder and improve boot partition size and options. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode --- profiles/nixos/disks.nix | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/profiles/nixos/disks.nix b/profiles/nixos/disks.nix index 95d3d22..54217ba 100644 --- a/profiles/nixos/disks.nix +++ b/profiles/nixos/disks.nix @@ -1,12 +1,33 @@ _: { - fileSystems."/" = { - device = "/dev/disk/by-label/NIXROOT"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-label/NIXBOOT"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; + disko.devices = { + disk = { + main = { + device = "/dev/nvme0n1"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + ESP = { + type = "EF00"; + size = "512M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "fmask=0022" "dmask=0022" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; }; }