From 73c34fe407110bd4ceb826271711d95136faef5f Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Mon, 11 Aug 2025 12:26:26 +0200 Subject: [PATCH] Fix disk configuration to use actual disk labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace disko configuration with standard NixOS fileSystems using NIXROOT and NIXBOOT labels. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode --- profiles/nixos/disks.nix | 38 +++++++++----------------------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/profiles/nixos/disks.nix b/profiles/nixos/disks.nix index a61e859..95d3d22 100644 --- a/profiles/nixos/disks.nix +++ b/profiles/nixos/disks.nix @@ -1,32 +1,12 @@ _: { - disko.devices = { - disk = { - nvme0n1 = { - device = "/dev/%DISK%"; - type = "disk"; - content = { - type = "gpt"; - partitions = { - ESP = { - type = "EF00"; - size = "100M"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; + fileSystems."/" = { + device = "/dev/disk/by-label/NIXROOT"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-label/NIXBOOT"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; }; }