this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

add separate socks service config for discord

dawn d63d0e61 214d76d2

+22 -22
+1
users/mayer/default.nix
··· 133 133 in 134 134 l.flatten [ 135 135 (tlib.prefixStrings "${inputs.self}/users/modules/" modulesToEnable) 136 + ../modules/discord/service.nix 136 137 ]; 137 138 138 139 home = {
+1 -22
users/modules/discord/default.nix
··· 1 1 { 2 2 pkgs, 3 3 terra, 4 - inputs, 5 - lib, 6 4 ... 7 5 }: 8 6 let ··· 14 12 }; 15 13 in 16 14 { 17 - # imports = ["${inputs.moonlight}/nix/home-manager.nix"]; 15 + imports = [./service.nix]; 18 16 19 17 home.packages = [ 20 18 (pkgs.symlinkJoin { ··· 29 27 ''; 30 28 }) 31 29 ]; 32 - 33 - systemd.user.services.discord-socks-proxy = { 34 - Unit = { 35 - Description = "SSH SOCKS5 proxy for Discord"; 36 - After = [ "network-online.target" ]; 37 - Wants = [ "network-online.target" ]; 38 - }; 39 - 40 - Service = { 41 - Type = "simple"; 42 - ExecStart = "${pkgs.openssh}/bin/ssh -N -D 127.0.0.1:1337 root@trimounts"; 43 - Restart = "on-failure"; 44 - RestartSec = "3s"; 45 - }; 46 - 47 - Install = { 48 - WantedBy = [ "default.target" ]; 49 - }; 50 - }; 51 30 }
+20
users/modules/discord/service.nix
··· 1 + {pkgs, ...}: { 2 + systemd.user.services.discord-socks-proxy = { 3 + Unit = { 4 + Description = "SSH SOCKS5 proxy for Discord"; 5 + After = [ "network-online.target" ]; 6 + Wants = [ "network-online.target" ]; 7 + }; 8 + 9 + Service = { 10 + Type = "simple"; 11 + ExecStart = "${pkgs.openssh}/bin/ssh -N -D 127.0.0.1:1337 root@dzwonek"; 12 + Restart = "on-failure"; 13 + RestartSec = "3s"; 14 + }; 15 + 16 + Install = { 17 + WantedBy = [ "default.target" ]; 18 + }; 19 + }; 20 + }