fix: small ssh-proxy fixes

This commit is contained in:
fufsob committed 2026-09-08 19:41:58 +00:00
1 parent 7a106326ea
commit ea7916dffb
4 files changed
+61 -6

No files matched your search

+12 -2
View File
@@ -17,6 +17,16 @@ in
example = "root";
};
serviceUser = mkOption {
type = types.nullOr (types.strMatching "[^[:space:]]+");
default = null;
description = ''
Unix user for the systemd SSH proxy service. Leave unset to use
systemd's default user.
'';
example = "proxy";
};
host = mkOption {
type = types.nullOr (types.strMatching "[^[:space:]]+");
default = null;
@@ -42,9 +52,9 @@ in
listenPort = mkOption {
type = types.port;
default = 1085;
default = 1091;
description = "Local port for the SSH-created SOCKS5 listener.";
example = 1085;
example = 1091;
};
identityFile = mkOption {
+3
View File
@@ -38,6 +38,9 @@ in
ExecStart = startScript;
Restart = "on-failure";
RestartSec = 5;
}
// lib.optionalAttrs (s.serviceUser != null) {
User = s.serviceUser;
};
};
}