Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

AreaCommands or inputsChapters
Trust and host setuptrust.toml, vug store doctor, vug version compare-versionsArchitecture and Trust Model, Installation, Trust Policy, and Host Checks
Authoring and CIvug.star, vug record lockWriting vug.star Declarations, Locking Closures in Management CI
Activation and maintenancevug home plan, apply, status, rollback, recover, vug store gcPlanning, Applying, Rollback, and Recovery
Running programsvug home dev, vug home runRunning Commands and Command-Scoped FHS
System inspectionvug system observe-osObserving NixOS Candidates
Registry and reviewvug record check-tree, vug record decide-mergeThe Package Registry: vug-packages, Merge Checks and the Automated Gate
IntegrationA complete profile workflowEnd-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

RepositoryPinned version or commitRole
rust-vugv0.2.29 at 136aad6Implements the CLI, environment lifecycle, record checks and OS observation.
vug-packages2f82699Holds public package records, mostly references to existing Nixpkgs outputs, with a smaller set of overlay records for exceptions.
ts-vug-gatecfd1966Coordinates 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.