Introduction
vug manages declarative Linux user environments from signed Nix store closures. The client can install an exact set of packages without evaluating Nix expressions or building packages locally.
From declaration to generation
A Nix store closure is a set of store objects together with every object they reference, directly or indirectly. If a program needs an interpreter and shared libraries, those objects belong in its closure too. A declaration describes the packages, files and services a profile should use. A generation preserves a particular version of that profile, including the files and store references needed to use it again.
You write the declaration in vug.star. Management CI, a trusted continuous integration runner, resolves the Nix package outputs and signs a vug.lock recording the exact closure. On the client, a local trust policy determines which signatures and caches are acceptable. The result is a workflow in which the same signed inputs identify the same package objects, while a plan still accounts for the current state of the host. vug README.
A first look
On a configured test host with a declaration, a matching signed lock and a local trust policy, the sequence is:
vug home plan > plan.json
# Inspect the plan before applying it.
vug home apply --plan plan.json --wait
# Look up the profile after the operation finishes.
vug home status --profile demo
The first command observes the host and writes a plan to standard output. The second changes the profile after rechecking the plan. The third reports the active generation and any pending work. Read Planning, Applying, Rollback, and Recovery before running the second command.
Scope and reading order
| Area | Commands or inputs | Chapters |
|---|---|---|
| Trust and host setup | trust.toml, vug store doctor, vug version compare-versions | Architecture and Trust Model, Installation, Trust Policy, and Host Checks |
| Authoring and CI | vug.star, vug record lock | Writing vug.star Declarations, Locking Closures in Management CI |
| Activation and maintenance | vug home plan, apply, status, rollback, recover, vug store gc | Planning, Applying, Rollback, and Recovery |
| Running programs | vug home dev, vug home run | Running Commands and Command-Scoped FHS |
| System inspection | vug system observe-os | Observing NixOS Candidates |
| Registry and review | vug record check-tree, vug record decide-merge | The Package Registry: vug-packages, Merge Checks and the Automated Gate |
| Integration | A complete profile workflow | End-to-End Walkthrough and Glossary |
Read the trust and setup chapters before preparing a declaration. The locking chapter takes that declaration through CI, and the lifecycle chapter uses the resulting lock on the client. The runtime, observation and registry chapters then explain the other command families.
Versions and sources
| Repository | Pinned version or commit | Role |
|---|---|---|
rust-vug | v0.2.29 at 136aad6 | Implements the CLI, environment lifecycle, record checks and OS observation. |
vug-packages | 2f82699 | Holds public package records, mostly references to existing Nixpkgs outputs, with a smaller set of overlay records for exceptions. |
ts-vug-gate | cfd1966 | Coordinates package pull-request inspection through a GitHub App, a Worker and a managed workflow. |
Prerequisites and conventions
You should be comfortable with a Unix shell, file permissions and reading JSON. For activation, use a disposable x86_64-linux host or VM with a systemd user manager. For locking, use a separate Linux CI environment with Nix, Git when using overlays, and access to the permitted caches and the lock signing key.
Examples use demo for a profile, example-host for the client hostname and example-user for its account. Replace paths and values such as UUID with values from your test environment. Blocks with output show the result of a specific CLI invocation. Examples that require a configured environment show the command to run.