# Nix-build
Small helper module to run do build a flake attribute or attribute from a nix
file.
## Example
- See [install](install.md) or [nixos-rebuild](nixos-rebuild.md)
## Requirements
No requirements.
## Providers
| Name | Version |
| --------------------------------------------------------------- | ------- |
| [external](#provider_external) | n/a |
## Modules
No modules.
## Resources
| Name | Type |
| --------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [external_external.nix-build](https://registry.terraform.io/providers/hashicorp/external/latest/docs/data-sources/external) | data source |
## Inputs
| Name | Description | Type | Default | Required |
| ---------------------------------------------------------------------- | --------------------------------------------------- | ------------- | ------- | :------: |
| [attribute](#input_attribute) | the attribute to build, can also be a flake | `string` | n/a | yes |
| [file](#input_file) | the nix file to evaluate, if not run in flake mode | `string` | `null` | no |
| [nix\_options](#input_nix_options) | the options of nix | `map(string)` | `{}` | no |
| [special\_args](#input_special_args) | A map exposed as NixOS's `specialArgs` thru a file. | `any` | `{}` | no |
## Outputs
| Name | Description |
| ----------------------------------------------------- | ----------- |
| [result](#output_result) | n/a |