From a4acc43150d3315d21578e3bfb7290fa2c34f1ac Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 28 Sep 2026 10:56:55 +0200 Subject: ... --- home-modules/autossh-proxy.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'home-modules') diff --git a/home-modules/autossh-proxy.nix b/home-modules/autossh-proxy.nix index e3179096..46cf1838 100644 --- a/home-modules/autossh-proxy.nix +++ b/home-modules/autossh-proxy.nix @@ -1,10 +1,10 @@ { lib, sysConfig, config, pkgs, ... }: let - cfg = config.services.autosshProxy; + cfg = config.programs.ssh.autosshProxies; in { options = { - services.autosshProxy = lib.mkOption { + programs.ssh.autosshProxies = lib.mkOption { type = lib.types.attrsOf (lib.types.submodule ({ name, config, ... }: { options = { port = lib.mkOption { @@ -24,6 +24,12 @@ in { sshpassSecret = lib.mkOption { type = lib.types.nullOr lib.types.str; }; + + ProxyCommand = lib.mkOption { + type = lib.types.str; + readOnly = true; + default = "${lib.getExe pkgs.socat} - SOCKS4A:127.0.0.1:%h:%p,socksport=${toString config.port}"; + }; }; })); }; -- cgit v1.2.3