From d9b81b4cdcf2acef6880e3d52df237eda4b884f8 Mon Sep 17 00:00:00 2001 From: chayleaf Date: Wed, 18 Oct 2023 20:24:52 +0700 Subject: [PATCH] hydra: add laptop public key --- system/hosts/server/home.nix | 1 + system/hosts/server/options.nix | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/system/hosts/server/home.nix b/system/hosts/server/home.nix index 1f68a53..9c48403 100644 --- a/system/hosts/server/home.nix +++ b/system/hosts/server/home.nix @@ -156,6 +156,7 @@ in { supportedFeatures = [ "kvm" "nixos-test" "benchmark" "big-parallel" ]; sshKey = "/secrets/hydra-builder-key"; sshUser = "hydra-builder"; + publicHostKey = cfg.laptopPublicKey; } ]; # limit CI CPU usage since I'm running everything else off this server too diff --git a/system/hosts/server/options.nix b/system/hosts/server/options.nix index 4fb2142..d7fbad4 100644 --- a/system/hosts/server/options.nix +++ b/system/hosts/server/options.nix @@ -14,6 +14,11 @@ default = null; description = "laptop hostname"; }; + laptopPublicKey = mkOption { + type = with types; nullOr str; + default = null; + description = "laptop public ssh key"; + }; keycloakRealm = mkOption { type = types.str; default = "master";