From d83e408e44f617f7972316754ea23a3492b6c3d6 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 23 Aug 2022 18:58:13 +0200 Subject: [PATCH] droppie: fix systemd wantedBy without this, the systemd service does not start after a reboot add cloud.pub.solar host key to ssh knownHosts --- hosts/droppie/droppie.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/droppie/droppie.nix b/hosts/droppie/droppie.nix index 9d431cc7..76825ae0 100644 --- a/hosts/droppie/droppie.nix +++ b/hosts/droppie/droppie.nix @@ -26,6 +26,10 @@ in } ]; + services.openssh.knownHosts = { + "cloud.pub.solar".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIABPJSwr9DfnqV0KoL23BcxlWtRxuOqQpnFnCv4SG/LW"; + }; + systemd.user.services.ssh-tunnel-cloud-pub-solar = { unitConfig = { Description = "Reverse SSH connection to enable backups from IPv4-only to IPv6-only host"; @@ -37,7 +41,7 @@ in Restart = "always"; RestartSec = "5s"; }; - wantedBy = [ "multi-user.target" ]; + wantedBy = [ "default.target" ]; }; services.ddclient = {