mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
25 lines
509 B
Nix
25 lines
509 B
Nix
{ 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 ];
|
|
}
|