From 4ec85793991fdfd29642850ce55cc87f12e1c509 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 7 May 2025 12:29:04 -0700 Subject: [PATCH] Add deployment vars to hosts. --- lib/types/host.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/types/host.nix b/lib/types/host.nix index ee26120..c74974e 100644 --- a/lib/types/host.nix +++ b/lib/types/host.nix @@ -92,7 +92,7 @@ in rec { }; }; - masterKeyOpts = { ... }: { + masterKeyOpts = _: { options = with types; { key-path = mkOption { type = str; @@ -302,6 +302,16 @@ in rec { "Path on the local filesystem to a host SSH key for initrd, if any."; default = null; }; + + deploy = { + enable = mkEnableOption "Enable deploy-rs deployments."; + + sshOptions = mkOption { + type = listOf str; + description = "List of SSH options to use when deploying."; + default = [ ]; + }; + }; }; }; }