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:
Example:
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:
Declared by: - https://github.com/cachix/devenv/blob/main/src/modules/languages/zig.nix
languages.zig.lsp.enable
Whether to enable Zig Language Server.
Type: boolean
Default:
Example:
Declared by: - https://github.com/cachix/devenv/blob/main/src/modules/languages/zig.nix
languages.zig.lsp.package
The Zig language server package to use.
Type: package
Default:
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.lsp.package using zig-overlay.
Type: null or string
Default:
Example:
Declared by: - https://github.com/cachix/devenv/blob/main/src/modules/languages/zig.nix