Infini-DL360: fix disko config

This commit is contained in:
Infinidoge 2024-05-05 06:27:58 -04:00
parent 4fb4b5657d
commit 1baac1f5d8
No known key found for this signature in database

View file

@ -1,5 +1,5 @@
{ config, lib, ... }: { config, lib, ... }:
with lib.disko; with lib.our.disko;
let let
inherit (builtins) mapAttrs; inherit (builtins) mapAttrs;
mountOptions = defaultMountOptions; mountOptions = defaultMountOptions;
@ -16,10 +16,9 @@ in
]; ];
}; };
disk = { disk = {
lun = "usb-HP_iLO_LUN_01_Media_0_000002660A01-0:1" { lun = mkDisk "usb-HP_iLO_LUN_01_Media_0_000002660A01-0:1" {
partitions = { partitions = {
ESP = { boot = {
name = "boot";
size = "256M"; size = "256M";
type = "EF00"; type = "EF00";
content = { content = {
@ -46,12 +45,16 @@ in
}; };
zpool = mapAttrs mkZPool { zpool = mapAttrs mkZPool {
zssd = { zssd = {
datasets = {
nix = mkZfs "/nix" {}; nix = mkZfs "/nix" {};
persist = mkZfs "/persist" {}; persist = mkZfs "/persist" {};
}; };
};
zhdd = { zhdd = {
datasets = {
storage = mkZfs "/storage" {}; storage = mkZfs "/storage" {};
}; };
}; };
}; };
};
} }