Skip to main content

Crate nix_env_manager

Crate nix_env_manager 

Source
Expand description

Nix-Env-Manager: Nix Flakes and Attic Integration for AIVCS

This crate provides the environment versioning layer for AIVCS. It interfaces with Nix Flakes for deterministic builds and Attic for binary caching.

§Layer 2 - Environment/Tooling

Focus: Correct hash generation and dependency resolution.

§Features

  • Generate content-addressable hashes from Nix Flakes
  • Interact with Attic binary cache for environment storage
  • Hash Rust source code for logic versioning

Structs§

AtticClient
Attic client for binary cache operations
AtticConfig
Attic configuration
FlakeMetadata
Metadata from a Nix Flake
NixHash
Nix environment hash - content-addressable identifier

Enums§

HashSource
Source of the Nix hash
NixError
Errors that can occur in the Nix environment manager

Functions§

generate_environment_hash
Generate environment hash from a Nix Flake
generate_logic_hash
Generate a hash of Rust source code
get_flake_metadata
Get full flake metadata using nix command
is_attic_available
Check if Attic CLI is available
is_nix_available
Check if Nix is available on the system

Type Aliases§

Result
Result type for nix-env-manager operations