MyNixOS website logo
option

virtualisation.credentials

Credentials to pass to the VM 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
{
  binary-key = {
    mechanism = "fw_cfg";
    source = "./private.der";
  };
  config-file = {
    mechanism = "smbios";
    text = ''
      [database]
      host=localhost
      port=5432
    '';
  };
  database-password = {
    text = "my-secret-password";
  };
  ssl-cert = {
    source = "./cert.pem";
  };
}