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)
| 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)
| 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)
| Name | Type | Description |
|---|---|---|
device |
string |
Returns: NixRemoteInstallCommand.Builder
1.6. WithHostname(string)
Sets target hostname (required).
public NixRemoteInstallCommand.Builder WithHostname(string hostname)
| Name | Type | Description |
|---|---|---|
hostname |
string |
Returns: NixRemoteInstallCommand.Builder
1.7. WithIp(IPAddress)
Sets target VM ip (required).
public NixRemoteInstallCommand.Builder WithIp(IPAddress ip)
| 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)
| Name | Type | Description |
|---|---|---|
keyPath |
AbsolutePath |
Returns: NixRemoteInstallCommand.Builder