2022-09-18 15:13:50 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.headphones = {
|
|
|
|
enable = true;
|
2024-01-05 23:44:08 -08:00
|
|
|
host = "0.0.0.0";
|
2022-09-18 15:13:50 -07:00
|
|
|
port = 8181;
|
2024-03-16 00:56:57 -07:00
|
|
|
package = "${pkgs.unstable.headphones}";
|
2022-09-18 15:13:50 -07:00
|
|
|
user = "headphones";
|
|
|
|
group = "audio";
|
|
|
|
dataDir = "/data/music";
|
|
|
|
};
|
2024-01-05 23:44:08 -08:00
|
|
|
services.nginx.virtualHosts."headphones.mossnet.lan" = {
|
|
|
|
enableACME = false;
|
|
|
|
forceSSL = false;
|
|
|
|
|
|
|
|
locations."/" = {
|
|
|
|
extraConfig = ''
|
|
|
|
proxy_pass http://127.0.0.1:8181/;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2022-09-18 15:13:50 -07:00
|
|
|
}
|