phoebus_os/installer-rs/crates/phoebus-executor/src/lib.rs
Phoebus b4a6b5df80
Some checks are pending
ci / test (push) Waiting to run
feat(nvidia): hardware-driven driver policy, installed integration and live payload
- resolve the NVIDIA branch and kernel-module flavor from PCI device IDs
  (Turing+ open modules; Maxwell/Pascal/Volta proprietary, masked below 595;
  Fermi/Kepler fall back to nouveau, reported; unknown IDs reported)
- capture pci_id/pci_address in the probe; drive VIDEO_CARDS, package.use,
  package.accept_keywords, package.mask, modprobe.d and dracut from the plan,
  preserving hybrid Intel/AMD
- add the nvidia_drivers install stage (after the kernel, before boot) that
  emerges the driver, regenerates the initramfs, records /etc/phoebus/nvidia and
  fails the install on failure; sys update rebuilds modules and the initramfs
- refuse AI changes to x11-drivers/nvidia-drivers
- live ISO: signed non-free components, stable-kernel pin (testing 7.2 breaks
  the 550 driver), DKMS build for the exact kernel, gated pre-greetd load,
  fail-safe entry, gpu-report, and a --verify-live-nvidia build gate that runs
  on cached rootfs builds and fails on any missing component
- docs: ADR 0012, STATUS/CHANGELOG/HANDOFF, live README
- also carries the pending OpenCode model-variant/streaming changes and fixes
  the GUI bridge install thread join that could hang
2026-09-22 21:53:28 -07:00

42 lines
1 KiB
Rust

//! Phoebus executor: privileged, deterministic system operations.
//!
//! Every external command goes through the `Exec` context, which centralises
//! logging, redaction and dry-run. Destructive operations require a
//! `DestructiveAuthorization` token produced only after explicit confirmation.
pub mod actions;
pub mod admin;
pub mod ai;
pub mod auth;
pub mod boot;
pub mod command;
pub mod desktop;
pub mod encryption;
pub mod error;
pub mod exec;
pub mod kernel;
pub mod live_nvidia;
pub mod log;
pub mod nix;
pub mod opencode;
pub mod opencode_client;
pub mod opencode_server;
pub mod portage;
pub mod probe;
pub mod rollback;
pub mod sandbox;
pub mod services;
pub mod snapshot;
pub mod stage3;
pub mod storage;
pub mod transaction;
pub mod update;
pub mod users;
pub use auth::{authorize, AutoConfirm, Confirmation, DenyConfirm, DestructiveAuthorization};
pub use command::{
CommandOutput, CommandSpec, NeverRunner, ProcessRunner, RealRunner, RecordingRunner,
};
pub use error::{ExecError, Result};
pub use exec::Exec;
pub use log::Logger;