mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41:08 +01:00
feat(zaatar): clean up mpd
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
streams = import <niveum/lib/streams.nix> { inherit lib; };
|
||||
streams = import <niveum/lib/streams.nix> {
|
||||
di-fm-key = lib.strings.fileContents <secrets/di.fm/key>;
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [ <niveum/modules/mpd-fm.nix> ];
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
let
|
||||
tunerHTML = pkgs.callPackage <niveum/packages/tuner.nix> {
|
||||
playlists = import <niveum/lib/playlists.nix> { inherit lib; };
|
||||
};
|
||||
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 ];
|
||||
}
|
||||
Reference in New Issue
Block a user