Zig
Getting Started
The simplest way to get started with Zig is to use the version attribute, which automatically sets up both the Zig compiler and ZLS (Zig Language Server) from the zig-overlay:
This will automatically: - Use the specified Zig version from zig-overlay - Install the corresponding ZLS version (e.g., version "0.15.1" uses ZLS 0.15.0)
Alternatively, you can manually specify packages:
Options
languages.zig.enable
Whether to enable tools for Zig development.
Type: boolean
Default:
false
Example:
true
Declared by: - https://github.com/cachix/devenv/blob/main/src/modules/languages/zig.nix
languages.zig.package
Which package of Zig to use.
Type: package
Default:
pkgs.zig
Declared by: - https://github.com/cachix/devenv/blob/main/src/modules/languages/zig.nix
languages.zig.version
The Zig version to use.
This automatically sets the languages.zig.package and languages.zig.zls.package using zig-overlay.
Type: null or string
Default:
null
Example:
"0.15.1"
Declared by: - https://github.com/cachix/devenv/blob/main/src/modules/languages/zig.nix
languages.zig.zls.package
Which package of zls to use.
Type: package
Default:
pkgs.zls
Declared by: - https://github.com/cachix/devenv/blob/main/src/modules/languages/zig.nix