diff options
| author | Miran Bastaja <mbastaja@sorre.xyz> | 2025-02-28 14:30:59 +0100 |
|---|---|---|
| committer | Miran Bastaja <mbastaja@sorre.xyz> | 2025-02-28 14:31:23 +0100 |
| commit | 3683c681f99e30b110f811be7c8f410a9a58fcdc (patch) | |
| tree | 12fc22f5e1547be2a4f8bc36e5865576e78b8da4 /hosts/underworld/home.nix | |
| parent | 6681f10241daabe922b2de7d317eb2faa0d7ab4e (diff) | |
underworld: add simple port-forwarding ssh service
Diffstat (limited to 'hosts/underworld/home.nix')
| -rw-r--r-- | hosts/underworld/home.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hosts/underworld/home.nix b/hosts/underworld/home.nix index bb8c57d..004f5d6 100644 --- a/hosts/underworld/home.nix +++ b/hosts/underworld/home.nix @@ -56,6 +56,22 @@ portal.xdgOpenUsePortal = true; }; + systemd.user.services = { + planine-miran-postgres-ssh-tunnel = { + Unit = { + Description = "SSH Tunnel to PostgreSQL on miran@planine.hr"; + After = "network-online.target"; + Wants = "network-online.target"; + }; + Service = { + Type = "simple"; + ExecStart = "${pkgs.openssh}/bin/ssh -vvv -N -L 54332:localhost:54332 miran@planine.hr"; + Restart = "on-failure"; + RestartSec = 10; + }; + }; + }; + home.stateVersion = "23.11"; }; |
