1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +01:00

feat(toum): add tuner website

This commit is contained in:
2020-11-05 21:28:56 +01:00
parent c638ef93f5
commit 263a732580
6 changed files with 398 additions and 230 deletions

24
configs/tuner.nix Normal file
View File

@@ -0,0 +1,24 @@
{ pkgs, config, lib, ... }:
let
tunerHTML = pkgs.callPackage <niveum/packages/tuner.nix> {
playlists = import <niveum/lib/playlists.nix>;
};
in
{
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedTlsSettings = true;
virtualHosts.default = {
locations."= /tuner".extraConfig = ''
default_type text/html;
alias ${tunerHTML};
'';
};
};
networking.firewall.allowedTCPPorts = [ 80 ];
}