NixRemoteUpdateCommand.Builder
Fluent builder for NixRemoteUpdateCommand.
public sealed class NixRemoteUpdateCommand.Builder
1. Methods
1.1. Build()
Builds the command. Throws when required fields are missing.
public NixRemoteUpdateCommand Build()
Returns: NixRemoteUpdateCommand
1.2. Create()
Creates a new builder.
public static NixRemoteUpdateCommand.Builder Create()
Returns: NixRemoteUpdateCommand.Builder
1.3. WithBaseTreeDir(AbsolutePath)
Sets the source-of-truth base nixos tree directory (required).
public NixRemoteUpdateCommand.Builder WithBaseTreeDir(AbsolutePath dir)
| Name | Type | Description |
|---|---|---|
dir |
AbsolutePath |
Returns: NixRemoteUpdateCommand.Builder
1.4. WithHostname(string)
Sets target hostname (required).
public NixRemoteUpdateCommand.Builder WithHostname(string hostname)
| Name | Type | Description |
|---|---|---|
hostname |
string |
Returns: NixRemoteUpdateCommand.Builder
1.5. WithIp(IPAddress)
Sets target VM ip (required).
public NixRemoteUpdateCommand.Builder WithIp(IPAddress ip)
| Name | Type | Description |
|---|---|---|
ip |
IPAddress |
Returns: NixRemoteUpdateCommand.Builder
1.6. WithMasterKey(AbsolutePath)
Sets the master private key path (required).
public NixRemoteUpdateCommand.Builder WithMasterKey(AbsolutePath keyPath)
| Name | Type | Description |
|---|---|---|
keyPath |
AbsolutePath |
Returns: NixRemoteUpdateCommand.Builder
1.7. WithOverlayDir(AbsolutePath)
Sets the per-VM overlay directory (required).
public NixRemoteUpdateCommand.Builder WithOverlayDir(AbsolutePath dir)
| Name | Type | Description |
|---|---|---|
dir |
AbsolutePath |
Returns: NixRemoteUpdateCommand.Builder