From eaf879c4d1bcc9e59e517f30f97ad6a3b7661aec Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 6 Jun 2026 16:39:46 -0400 Subject: [PATCH] fix(disko-config): use disko.devices.disk instead of top-level disk disko module defines options under `disko.devices.disk.*`, not `disk.*`. This was causing evaluation error: "The option 'disk' does not exist. Did you mean 'disko'?" --- hosts/uConsole/disko-config.nix | 74 ++++++++++++++++----------------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/hosts/uConsole/disko-config.nix b/hosts/uConsole/disko-config.nix index 554fefb..2fbe0de 100644 --- a/hosts/uConsole/disko-config.nix +++ b/hosts/uConsole/disko-config.nix @@ -1,45 +1,43 @@ { lib, ... }: { - disk = { - main = { - type = "disk"; - device = "/dev/disk/by-path/platform-fe340000.mmc"; - content = { - type = "gpt"; - partitions = { - boot = { - name = "FIRMWARE"; - size = "1G"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot/firmware"; - mountOptions = [ - "fmask=0022" - "dmask=0022" - ]; - }; + disko.devices.disk.main = { + type = "disk"; + device = "/dev/disk/by-path/platform-fe340000.mmc"; + content = { + type = "gpt"; + partitions = { + boot = { + name = "FIRMWARE"; + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot/firmware"; + mountOptions = [ + "fmask=0022" + "dmask=0022" + ]; }; - root = { - name = "NIXOS_UCM5"; - size = "30G"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - mountOptions = [ "noatime" ]; - }; + }; + root = { + name = "NIXOS_UCM5"; + size = "30G"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + mountOptions = [ "noatime" ]; }; - home = { - name = "NIXOS_HOME"; - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/home"; - mountOptions = [ "noatime" ]; - }; + }; + home = { + name = "NIXOS_HOME"; + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/home"; + mountOptions = [ "noatime" ]; }; }; };