rust pobeda
This commit is contained in:
parent
1bc03bdb14
commit
5cd0ded292
59 changed files with 1185 additions and 1389 deletions
20
modules/vpn/shadowsocks.nix
Normal file
20
modules/vpn/shadowsocks.nix
Normal 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}'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue