Personal-use NixOS configuration
0
fork

Configure Feed

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

Get soulseek working

encode42 83a82547 75b2645e

+12 -5
+9 -3
hosts/index/config/torrenting/soulseek.nix
··· 1 - { flakeRoot, ... }: 1 + { flakeRoot, config, ... }: 2 2 3 3 let 4 4 interface = "soulsk"; ··· 12 12 ssl = "internal"; 13 13 } 14 14 ]; 15 + 16 + interface = config.vpnNamespaces.${interface}.namespaceAddress; 15 17 }; 16 18 in 17 19 { ··· 22 24 vpnNamespaces.${interface} = { 23 25 enable = true; 24 26 25 - wireguardConfigFile = "/mnt/apps/soulseek/wg0.conf"; 27 + portMappings = [ 28 + { from = config.services.slskd.settings.web.port; to = config.services.slskd.settings.web.port; } 29 + ]; 26 30 27 31 openVPNPorts = [ 28 32 { 29 33 inherit port; 30 34 } 31 35 ]; 36 + 37 + wireguardConfigFile = "/mnt/apps/soulseek/wg0.conf"; 32 38 }; 33 39 34 40 services.slskd = { ··· 42 48 43 49 shares = { 44 50 directories = [ 45 - "[Music]/mnt/data/media/Music" # TODO 51 + "[Music]/mnt/data/media/Music" 46 52 ]; 47 53 }; 48 54
+1 -1
hosts/index/default.nix
··· 35 35 ./config/language/omnipoly.nix 36 36 37 37 #./config/torrenting/rtorrent.nix 38 - #./config/torrenting/soulseek.nix 38 + ./config/torrenting/soulseek.nix 39 39 40 40 ./config/web/caddy.nix 41 41 ./config/web/forgejo.nix
+2 -1
packages/server/torrenting/soulseek.nix
··· 1 1 { 2 2 hosts ? [ ], 3 + interface ? "", 3 4 }: 4 5 5 6 { config, flakeLib, ... }: ··· 93 94 }; 94 95 95 96 services.caddy.virtualHosts = flakeLib.mkProxies hosts '' 96 - reverse_proxy :${toString config.services.slskd.settings.web.port} { 97 + reverse_proxy ${interface}:${toString config.services.slskd.settings.web.port} { 97 98 header_up Upgrade "websocket" 98 99 header_up Connection "Upgrade" 99 100 }