2024-07-26 22:12:48 +02:00
|
|
|
{ config, pkgs, ... }:
|
2024-03-06 14:44:18 +01:00
|
|
|
{
|
2024-12-20 20:40:27 +01:00
|
|
|
wireguard.services = {
|
|
|
|
client.via = "nucnix";
|
|
|
|
firewallRuleForNode.nucnix-nginx.allowedTCPPorts = [
|
2024-07-26 22:12:48 +02:00
|
|
|
3000
|
|
|
|
80
|
|
|
|
];
|
2024-03-14 23:08:42 +01:00
|
|
|
};
|
2024-03-06 13:04:44 +01:00
|
|
|
age.secrets.spotifySecret = {
|
|
|
|
owner = "root";
|
2024-03-02 12:52:56 +01:00
|
|
|
mode = "440";
|
2024-03-06 13:04:44 +01:00
|
|
|
rekeyFile = config.node.secretsDir + "/spotifySecret.age";
|
|
|
|
};
|
2024-03-01 12:58:02 +01:00
|
|
|
services.your_spotify = {
|
2024-11-10 19:13:53 +01:00
|
|
|
#enable = true;
|
2024-03-06 13:04:44 +01:00
|
|
|
spotifySecretFile = config.age.secrets.spotifySecret.path;
|
2024-03-02 12:52:56 +01:00
|
|
|
settings = {
|
2024-03-27 17:05:20 +01:00
|
|
|
SPOTIFY_PUBLIC = "5397a3f2a75949459da343a5e7851bd9";
|
2024-03-06 13:04:44 +01:00
|
|
|
CLIENT_ENDPOINT = "https://sptfy.${config.secrets.secrets.global.domains.web}";
|
|
|
|
API_ENDPOINT = "https://apisptfy.${config.secrets.secrets.global.domains.web}";
|
2024-03-27 17:05:20 +01:00
|
|
|
MONGO_NO_ADMIN_RIGHTS = "false";
|
2024-03-01 12:58:02 +01:00
|
|
|
};
|
2024-03-02 12:52:56 +01:00
|
|
|
enableLocalDB = true;
|
2024-03-06 14:44:18 +01:00
|
|
|
nginxVirtualHost = "sptfy.${config.secrets.secrets.global.domains.web}";
|
2024-03-01 12:58:02 +01:00
|
|
|
};
|
|
|
|
environment.persistence."/persist".directories = [
|
|
|
|
{
|
2024-03-02 10:22:02 +01:00
|
|
|
inherit (config.services.mongodb) user;
|
2024-03-01 12:58:02 +01:00
|
|
|
directory = config.services.mongodb.dbpath;
|
|
|
|
}
|
|
|
|
];
|
2024-03-06 14:44:18 +01:00
|
|
|
services.mongodb.package = pkgs.mongodb-bin;
|
2024-03-01 12:58:02 +01:00
|
|
|
}
|