MyNixOS website logo
option

virtualisation.credentials

Credentials to pass to the VM or container using systemd's credential system.

See systemd.exec(5), systemd-creds(1) and https://systemd.io/CREDENTIALS/ for more information about systemd credentials.

Declarations
Type
attribute set of (submodule)
Default
{ }
Example
{
  database-password = {
    text = "my-secret-password";
  };
  ssl-cert = {
    source = "./cert.pem";
  };
  binary-key = {
    source = "./private.der";
  };
}