Expand description
§flk - Core Library
This crate provides the core functionality for the flk CLI tool, which manages
Nix flake-based development environments.
§Modules
-
flake- Flake file generation, parsing, and manipulationflake::generator- Template-based flake generationflake::parsers- Nom-based parsers for Nix file sectionsflake::interfaces- Data structures representing flake componentsflake::nix_render- Safe Nix string/attribute rendering
-
utils- Shared utilitiesutils::backup- Lock file backup and restore functionalityutils::visual- Terminal output formatting and progress indicators
§Example
ⓘ
use flk::flake::parsers::flake::parse_flake;
use flk::flake::generator::generate_flake;
// Parse an existing flake configuration
let config = parse_flake("flake.nix")?;
// Generate a new profile template
let rust_profile = generate_flake("rust")?;