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
|
|
|
|
|
|
|
|
in λ(binary : Text) →
|
|
|
|
Child.flat
|
|
|
|
Child.Attributes::{
|
|
|
|
, binary
|
2021-04-15 09:18:19 +02:00
|
|
|
, priorityOffset = 2
|
2021-03-28 15:07:21 +02:00
|
|
|
, resources = Sigil.Init.Resources::{
|
2021-03-04 15:02:39 +01:00
|
|
|
, caps = 256
|
2021-03-28 15:07:21 +02:00
|
|
|
, ram = Sigil.units.MiB 32
|
2021-03-04 15:02:39 +01:00
|
|
|
}
|
|
|
|
, config = Init.Config::{
|
|
|
|
, policies =
|
|
|
|
[ Init.Config.Policy::{
|
|
|
|
, service = "ROM"
|
|
|
|
, label =
|
|
|
|
Init.LabelSelector.Type.Partial
|
|
|
|
{ prefix = Some "nixos -> ", suffix = None Text }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|