NixRemoteInstallCommand.Builder

Fluent builder for NixRemoteInstallCommand.

public sealed class NixRemoteInstallCommand.Builder

1. Methods

1.1. Build()

Builds the command. Throws System.ArgumentException when required fields are missing.

public NixRemoteInstallCommand Build()

Returns: NixRemoteInstallCommand

1.2. CopyHostSshKeys(bool)

Whether to copy host ssh keys onto the target.

public NixRemoteInstallCommand.Builder CopyHostSshKeys(bool copy)
Table 1. Parameters
Name Type Description

copy

bool

Returns: NixRemoteInstallCommand.Builder

1.3. Create()

Creates a new builder.

public static NixRemoteInstallCommand.Builder Create()

Returns: NixRemoteInstallCommand.Builder

1.4. WithConfigDir(AbsolutePath)

Sets the local generated-nix directory to scp (required).

public NixRemoteInstallCommand.Builder WithConfigDir(AbsolutePath localGeneratedDir)
Table 2. Parameters
Name Type Description

localGeneratedDir

AbsolutePath

Returns: NixRemoteInstallCommand.Builder

1.5. WithDiskDevice(string)

Sets the install target disk device (default /dev/sda).

public NixRemoteInstallCommand.Builder WithDiskDevice(string device)
Table 3. Parameters
Name Type Description

device

string

Returns: NixRemoteInstallCommand.Builder

1.6. WithHostname(string)

Sets target hostname (required).

public NixRemoteInstallCommand.Builder WithHostname(string hostname)
Table 4. Parameters
Name Type Description

hostname

string

Returns: NixRemoteInstallCommand.Builder

1.7. WithIp(IPAddress)

Sets target VM ip (required).

public NixRemoteInstallCommand.Builder WithIp(IPAddress ip)
Table 5. Parameters
Name Type Description

ip

IPAddress

Returns: NixRemoteInstallCommand.Builder

1.8. WithMasterKey(AbsolutePath)

Sets the master private key path used for root ssh (required).

public NixRemoteInstallCommand.Builder WithMasterKey(AbsolutePath keyPath)
Table 6. Parameters
Name Type Description

keyPath

AbsolutePath

Returns: NixRemoteInstallCommand.Builder