diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-05-02 14:30:08 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-05-02 14:30:08 +0300 |
commit | 3c61dc9cc35ed201877d81b1b7ad848f1ac9855e (patch) | |
tree | cd9c766d3046cbaddfdd48ef34d6229e37d36591 /modules/shadowsocks.nix | |
parent | 2024-05-02 (diff) |
2024-05-02
Diffstat (limited to '')
-rw-r--r-- | modules/shadowsocks.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/shadowsocks.nix b/modules/shadowsocks.nix index 670faec..1d55cf5 100644 --- a/modules/shadowsocks.nix +++ b/modules/shadowsocks.nix @@ -3,6 +3,7 @@ inputs, lib, pkgs, + this, ... }: with lib; @@ -129,5 +130,16 @@ in "net.ipv4.tcp_mtu_probing" = 1; "net.ipv4.tcp_congestion_control" = "hybla"; }; + + topology = with cfg; { + nodes.${this.hostname}.services.shadowsocks = { + name = "Shadowsocks"; + icon = pkgs.fetchurl { + url = "https://upload.wikimedia.org/wikipedia/commons/f/f5/Shadowsocks-Logo.svg"; + sha256 = "sha256-NzGt0WQA4NQpMPsOTWgBrghuewxQeDoSe46oTm0f+BY="; + }; + details.listen.text = ":::${toString port}"; + }; + }; }; } |