feat: setup termix and wireproxy for sock5 proxy.

This commit is contained in:
CronyAkatsuki 2026-01-31 13:54:42 +01:00
parent 02062743f8
commit 2363adccc0
9 changed files with 135 additions and 24 deletions

View file

@ -0,0 +1,34 @@
{pkgs, ...}: {
systemd.services.wireproxy = {
enable = true;
description = "Wireproxy";
after = ["network.target"];
wants = ["network.target"];
serviceConfig = {
Type = "simple";
Restart = "always";
RestartSec = 3;
User = "wireproxy";
Group = "wireproxy";
WorkingDirectory = "/var/lib/wireproxy";
StateDirectory = "wireproxy";
};
script = "${pkgs.wireproxy}/bin/wireproxy";
wantedBy = ["multi-user.target"];
};
users = {
users.wireproxy = {
isSystemUser = true;
home = "/var/lib/wireproxy";
createHome = true;
group = "wireproxy";
};
groups.wireproxy = {};
};
networking.firewall.allowedTCPPorts = [25344];
}