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§
- Attic
Client - Attic client for binary cache operations
- Attic
Config - Attic configuration
- Flake
Metadata - Metadata from a Nix Flake
- NixHash
- Nix environment hash - content-addressable identifier
Enums§
- Hash
Source - 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