From 9bc783e711b34b7d4bc2e60a5d642ed7a281811a Mon Sep 17 00:00:00 2001 From: randomuser Date: Wed, 24 Jan 2024 23:44:47 -0600 Subject: [PATCH] added ssh-phone-home to mainsail, phoning to netbox --- boxes/mainsail/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/boxes/mainsail/default.nix b/boxes/mainsail/default.nix index 0a90333..24475c4 100644 --- a/boxes/mainsail/default.nix +++ b/boxes/mainsail/default.nix @@ -2,6 +2,7 @@ { imports = [ ./hardware-configuration.nix + ../../modules/ssh-phone-home.nix ../../modules/bootstrap.nix ../../modules/common.nix ]; @@ -55,6 +56,15 @@ }; }; + services.ssh-phone-home = { + enable = true; + localUser = "usr"; + remoteHostname = "beepboop.systems"; + remotePort = 443; + remoteUser = "ryan"; + bindPort = 2222; + }; + users.users.usr.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbhM3wj0oqjR3pUaZgpfX4Xo4dlzvBTbQ48zHyg7Pwx usr" # x230t "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB2xUbQw9+RCPVw7qCFm4NNCP/MpS2BIArcwMv0KdKOI usr" # mlg