archive_fileNivis Nix constructor for the archive_file resource (provider archive). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
output_path,
type,
exclude_symlink_directories ? null,
excludes ? null,
output_file_mode ? null,
source_content ? null,
source_content_filename ? null,
source_dir ? null,
source_file ? null,
source ? null,
overrides ? {}
}Required arguments
output_pathtype
Optional arguments
exclude_symlink_directories(defaults tonull)excludes(defaults tonull)output_file_mode(defaults tonull)source_content(defaults tonull)source_content_filename(defaults tonull)source_dir(defaults tonull)source_file(defaults tonull)source(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
idoutput_base64sha256output_base64sha512output_md5output_shaoutput_sha256output_sha512output_size
Example
archive_file {
name = "file";
output_path = …; # required
type = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.