the rendered meta flake pins hyperhive by forge URL and follows its nixpkgs
This commit is contained in:
parent
6ea13c02e3
commit
bb13909d8e
8 changed files with 135 additions and 153 deletions
|
|
@ -78,15 +78,10 @@ enum Cmd {
|
|||
/// Path to the sqlite message store.
|
||||
#[arg(long, default_value = crate::paths::BROKER_DB)]
|
||||
db: PathBuf,
|
||||
/// Override: URL of the hyperhive flake. Inlined into each
|
||||
/// per-agent `flake.nix` as the `hyperhive` input.
|
||||
/// Override: store path of the hyperhive flake source, used to
|
||||
/// identify the running revision.
|
||||
#[arg(long)]
|
||||
hyperhive_flake: Option<String>,
|
||||
/// Override: store-path URL of the nixpkgs to wire into the meta
|
||||
/// flake as `inputs.nixpkgs.url`. Empty = legacy
|
||||
/// `follows = "hyperhive/nixpkgs"` fallback.
|
||||
#[arg(long)]
|
||||
nixpkgs_flake: Option<String>,
|
||||
/// Override: dashboard HTTP port.
|
||||
#[arg(long)]
|
||||
dashboard_port: Option<u16>,
|
||||
|
|
@ -137,7 +132,6 @@ async fn main() -> Result<()> {
|
|||
config,
|
||||
db,
|
||||
hyperhive_flake,
|
||||
nixpkgs_flake,
|
||||
dashboard_port,
|
||||
agent_cpu_quota,
|
||||
agent_memory_max,
|
||||
|
|
@ -161,9 +155,6 @@ async fn main() -> Result<()> {
|
|||
if let Some(v) = hyperhive_flake {
|
||||
sc.env.hyperhive_flake = v;
|
||||
}
|
||||
if let Some(v) = nixpkgs_flake {
|
||||
sc.env.nixpkgs_flake = v;
|
||||
}
|
||||
if let Some(v) = dashboard_port {
|
||||
sc.env.dashboard_port = v;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue