sigil/nixos-modules/eris/rom-vfs.dhall

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-04-21 09:59:27 +02:00
let Sigil =
env:DHALL_SIGIL
? https://git.sr.ht/~ehmry/dhall-sigil/blob/trunk/package.dhall
2021-03-04 15:02:39 +01:00
2021-03-28 15:07:21 +02:00
let Init = Sigil.Init
2021-03-04 15:02:39 +01:00
let Child = Init.Child
2021-04-06 11:10:15 +02:00
in λ(gptGuid : Text) →
λ(resources : Init.Resources.Type) →
2021-03-28 15:07:21 +02:00
λ(vfsConfig : Sigil.Prelude.XML.Type) →
2021-03-04 15:02:39 +01:00
λ(binary : Text) →
Child.flat
Child.Attributes::{
, binary
2021-04-15 09:18:19 +02:00
, priorityOffset = 2
2021-03-04 15:02:39 +01:00
, resources
, config = Init.Config::{
, content = [ vfsConfig ]
, policies =
[ Init.Config.Policy::{
, service = "File_system"
, label = Init.LabelSelector.prefix "eris_rom"
, attributes = toMap { root = "/" }
}
, Init.Config.Policy::{
, service = "File_system"
, label = Init.LabelSelector.suffix "nix-store"
, attributes = toMap { root = "/nix/store" }
2021-03-04 15:02:39 +01:00
}
]
}
, routes =
[ { service = Init.Service::{ name = "Block" }
2021-04-06 11:10:15 +02:00
, route = Init.Route.child "drivers" (Some gptGuid)
}
]
2021-03-04 15:02:39 +01:00
}