NixSecretEntry

One sops secret to emit into secrets.yaml. SopsKeyPath is the sops secret NAME as consumed by sops-nix (e.g. ipfs/swarm_key); sops-nix splits it on / into a nested yaml map, so SecretsYamlBuilder renders ipfs/* keys nested under one ipfs: map. IsMultiline selects a YAML block scalar (|) vs an inline-quoted scalar.

public sealed record NixSecretEntry : IEquatable<NixSecretEntry>

1. Constructors

1.1. NixSecretEntry(string, string, bool)

Creates a secret entry.

public NixSecretEntry(string sopsKeyPath, string value, bool isMultiline)
Table 1. Parameters
Name Type Description

sopsKeyPath

string

value

string

isMultiline

bool

2. Properties

2.1. IsMultiline

True to render as a YAML block scalar (|); false for inline-quoted.

public bool IsMultiline { get; }

2.2. SopsKeyPath

Sops secret name; / segments become nested yaml maps.

public string SopsKeyPath { get; }

2.3. Value

Plaintext secret value (encrypted by sops downstream).

public string Value { get; }

3. Operators

3.1. operator !=(NixSecretEntry, NixSecretEntry)

public static bool operator !=(NixSecretEntry left, NixSecretEntry right)
Table 2. Parameters
Name Type Description

left

NixSecretEntry

right

NixSecretEntry

Returns: bool

3.2. operator ==(NixSecretEntry, NixSecretEntry)

public static bool operator ==(NixSecretEntry left, NixSecretEntry right)
Table 3. Parameters
Name Type Description

left

NixSecretEntry

right

NixSecretEntry

Returns: bool