This project provides a Nix derivation for the Tofuenv version manager, allowing you to easily install and use Tofuenv within a Nix environment. Tofuenv is a version manager for OpenTofu, a configuration language and processor, designed to facilitate the installation, management, and switching between different versions of OpenTofu.
- Nix package manager installed on your system
-
Clone this repository:
git clone https://github.com/maddinek/tofuenv-nix.git cd tofuenv-nix
-
Build the Nix derivation:
nix-build shell.nix
-
Enter the Nix shell environment:
nix-shell shell.nix
-
Use Tofuenv commands inside the Nix shell:
tofuenv --version tofuenv install <version> tofuenv use <version>
Replace
<version>
with the desired version of OpenTofu you want to install or use.
default.nix
: Contains the Nix derivation for Tofuenv.shell.nix
: Defines the Nix shell environment with Tofuenv and other dependencies.versions.nix
: Specifies the versions of Tofuenv and other packages used in the project.packages.nix
: Lists the common packages included in the Nix shell environment.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.