NixPackage

One entry of environment.systemPackages, identified by its nixpkgs attribute path.

Note
The attribute path is what nixpkgs calls the package: htop, or a nested path such as python312Packages.torch. This is the packaging half of the model; the configuration half is NixService.
public sealed class NixPackage

1. Constructors

1.1. NixPackage(string)

Creates a package reference from its nixpkgs attribute path.

public NixPackage(string attributePath)
Table 1. Parameters
Name Type Description

attributePath

string

nixpkgs attribute path, e.g. htop.

2. Properties

2.1. AttributePath

nixpkgs attribute path, e.g. htop or python312Packages.torch.

public string AttributePath { get; }

3. Methods

3.1. ToNixValue()

Renders the package as it appears inside environment.systemPackages.

public NixValue ToNixValue()

Returns: NixValue — The pkgs.-qualified attribute path.