2023-09-08 21:29:08 +01:00
|
|
|
{
|
|
|
|
lib,
|
2023-09-21 05:06:27 +01:00
|
|
|
config,
|
2023-09-08 21:29:08 +01:00
|
|
|
...
|
|
|
|
}: let
|
2023-09-18 03:56:58 +01:00
|
|
|
ports = import ../data/ports.nix;
|
2023-09-21 05:06:27 +01:00
|
|
|
secrets = config.services.secrets.secrets;
|
2023-09-08 21:29:08 +01:00
|
|
|
|
|
|
|
inherit (lib.modules) mkForce;
|
|
|
|
in {
|
|
|
|
services.slskd = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
environmentFile = secrets.slskd_env.path;
|
|
|
|
settings = {
|
|
|
|
remote_configuration = false;
|
|
|
|
remote_file_management = true;
|
|
|
|
soulseek = {
|
|
|
|
username = "chaoticryptidz";
|
|
|
|
description = "chaos's soulseek";
|
|
|
|
listen_port = ports.slskd;
|
|
|
|
};
|
|
|
|
web = {
|
|
|
|
port = ports.slskd-web;
|
|
|
|
authentication = {
|
|
|
|
username = "chaos";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
shares.directories = [
|
|
|
|
"/Music"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
nginx = {
|
|
|
|
enable = true; # I don't think this is even cheked
|
|
|
|
domainName = "soulseek.owo.monster";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."soulseek.owo.monster" = {
|
|
|
|
forceSSL = mkForce false;
|
|
|
|
enableACME = mkForce false;
|
|
|
|
};
|
|
|
|
}
|