rust pobeda

This commit is contained in:
Aleksandr 2025-06-08 23:40:41 +00:00
parent 1bc03bdb14
commit 5cd0ded292
59 changed files with 1185 additions and 1389 deletions

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
let
secrets = config.sops.secrets;
yorCfg = secrets."viendesu/shadowsocks/yor".path;
in
{
sops.secrets = {
"viendesu/shadowsocks/gneg".sopsFile = ../../secrets/viendesu.yaml;
"viendesu/shadowsocks/yor".sopsFile = ../../secrets/viendesu.yaml;
};
systemd.services.yor-proxy = {
after = [ "network.target" ];
description = "`Yor` shadowsocks";
serviceConfig = {
Type = "simple";
ExecStart = ''${pkgs.shadowsocks-rust}/bin/sslocal --config ${yorCfg}'';
};
};
}