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'?"
This commit is contained in:
2026-06-06 16:39:46 -04:00
parent 486758e51a
commit eaf879c4d1

View File

@@ -1,45 +1,43 @@
{ lib, ... }: { lib, ... }:
{ {
disk = { disko.devices.disk.main = {
main = { type = "disk";
type = "disk"; device = "/dev/disk/by-path/platform-fe340000.mmc";
device = "/dev/disk/by-path/platform-fe340000.mmc"; content = {
content = { type = "gpt";
type = "gpt"; partitions = {
partitions = { boot = {
boot = { name = "FIRMWARE";
name = "FIRMWARE"; size = "1G";
size = "1G"; type = "EF00";
type = "EF00"; content = {
content = { type = "filesystem";
type = "filesystem"; format = "vfat";
format = "vfat"; mountpoint = "/boot/firmware";
mountpoint = "/boot/firmware"; mountOptions = [
mountOptions = [ "fmask=0022"
"fmask=0022" "dmask=0022"
"dmask=0022" ];
];
};
}; };
root = { };
name = "NIXOS_UCM5"; root = {
size = "30G"; name = "NIXOS_UCM5";
content = { size = "30G";
type = "filesystem"; content = {
format = "ext4"; type = "filesystem";
mountpoint = "/"; format = "ext4";
mountOptions = [ "noatime" ]; mountpoint = "/";
}; mountOptions = [ "noatime" ];
}; };
home = { };
name = "NIXOS_HOME"; home = {
size = "100%"; name = "NIXOS_HOME";
content = { size = "100%";
type = "filesystem"; content = {
format = "ext4"; type = "filesystem";
mountpoint = "/home"; format = "ext4";
mountOptions = [ "noatime" ]; mountpoint = "/home";
}; mountOptions = [ "noatime" ];
}; };
}; };
}; };