rename single-ssh-host for brevity

This commit is contained in:
Kiara Grouwstra 2025-06-30 17:22:27 +02:00
parent c764c0f7b6
commit d135c94afa
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
2 changed files with 5 additions and 5 deletions

View file

@ -19,12 +19,12 @@ in
example = eval ( example = eval (
{ config, ... }: { config, ... }:
{ {
providers.single-ssh-host = providers.ssh-host =
{ ... }: { ... }:
{ {
system.stateVersion = "25.05"; system.stateVersion = "25.05";
}; };
resources.bar.runtime-environment.single-ssh-host = { resources.bar.runtime-environment.ssh-host = {
ssh = { ssh = {
host = "localhost"; host = "localhost";
username = "root"; username = "root";
@ -50,8 +50,8 @@ in
); );
in in
{ {
has-provider = lib.isAttrs example.providers.single-ssh-host; has-provider = lib.isAttrs example.providers.ssh-host;
has-resource = lib.isAttrs example.resources.bar.runtime-environment.single-ssh-host.module; has-resource = lib.isAttrs example.resources.bar.runtime-environment.ssh-host.module;
has-application = lib.isAttrs example.applications.foo.module; has-application = lib.isAttrs example.applications.foo.module;
has-deployment = lib.isAttrs example.deployments.baz.module; has-deployment = lib.isAttrs example.deployments.baz.module;
has-migration = lib.isAttrs example.migrations.boo.deployment; has-migration = lib.isAttrs example.migrations.boo.deployment;

View file

@ -54,7 +54,7 @@ let
}; };
}; };
}; };
single-ssh-host = { ssh-host = {
description = "A single host to deploy to by SSH."; description = "A single host to deploy to by SSH.";
type = submodule { type = submodule {
options = { options = {