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