Skip to content

Shell module scripts

scripts

Set of named scripts that each add an executable command to the shell.

Type: attribute set of (submodule)

Default:

{ }

Declared by: - templates/nix-shell-parts-vendored/nix/vendored/shell-modules/scripts.nix

scripts.\.path

Absolute path to the generated executable for this script.

Type: string (read only)

Declared by: - templates/nix-shell-parts-vendored/nix/vendored/shell-modules/scripts.nix

scripts.\.strict

When the script is treated as bash (no shebang), enable strict mode and lint it with shellcheck.

Type: boolean

Default:

true

Declared by: - templates/nix-shell-parts-vendored/nix/vendored/shell-modules/scripts.nix

scripts.\.text

The script body to expose as an executable command named after the attribute key. If the text starts with a shebang (e.g. “#!/usr/bin/env python”), it is written verbatim and executed with that interpreter. Otherwise the text is treated as a shell script (bash).

Type: string

Declared by: - templates/nix-shell-parts-vendored/nix/vendored/shell-modules/scripts.nix