BuildNixosIsoCommand.Builder

Fluent builder for BuildNixosIsoCommand.

public sealed class BuildNixosIsoCommand.Builder

1. Methods

1.1. Build()

Builds the command. Throws when required fields are missing.

public BuildNixosIsoCommand Build()

Returns: BuildNixosIsoCommand

1.2. Create()

Creates a new builder.

public static BuildNixosIsoCommand.Builder Create()

Returns: BuildNixosIsoCommand.Builder

1.3. WithNixDir(AbsolutePath)

Sets the Windows-side nix flake dir (required).

public BuildNixosIsoCommand.Builder WithNixDir(AbsolutePath nixDir)
Table 1. Parameters
Name Type Description

nixDir

AbsolutePath

Returns: BuildNixosIsoCommand.Builder

1.4. WithNixDir(IFileOperator)

Sets the nix flake dir from a rooted file operator (required).

public BuildNixosIsoCommand.Builder WithNixDir(IFileOperator fileOperator)
Table 2. Parameters
Name Type Description

fileOperator

IFileOperator

Operator rooted AT the flake directory.

Returns: BuildNixosIsoCommand.Builder — This builder.

1.5. WithOutputIsoPath(AbsolutePath)

Sets the Windows-side output ISO path (required).

public BuildNixosIsoCommand.Builder WithOutputIsoPath(AbsolutePath path)
Table 3. Parameters
Name Type Description

path

AbsolutePath

Returns: BuildNixosIsoCommand.Builder

1.6. WithOutputIsoPath(IFileOperator, ISubPath)

Sets the output ISO from a rooted file operator plus a relative file (required).

public BuildNixosIsoCommand.Builder WithOutputIsoPath(IFileOperator fileOperator, ISubPath subPath)
Table 4. Parameters
Name Type Description

fileOperator

IFileOperator

Operator rooted at the directory the ISO is written into.

subPath

ISubPath

ISO file, relative to that root.

Returns: BuildNixosIsoCommand.Builder — This builder.

1.7. WithWslDistro(string)

Overrides the WSL distro name (default DefaultWslDistro).

public BuildNixosIsoCommand.Builder WithWslDistro(string distro)
Table 5. Parameters
Name Type Description

distro

string

Returns: BuildNixosIsoCommand.Builder