mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-07-02 03:18:04 +02:00
Create user-stop-box for dell wyse, first steps to rpi4 image. Refactor parameters passed to gnuradio and telegram-decoder into proper options, make configs stateful (so users can edit them). Rearrage files a bit.
21 lines
523 B
Nix
21 lines
523 B
Nix
{ pkgs, config, lib, ... }: {
|
|
services = {
|
|
nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"map.${config.dump-dvb.domain}" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations = {
|
|
"/" = {
|
|
root = if (config.dump-dvb.domain == "dvb.solutions") then "${pkgs.windshield}/bin/" else "${pkgs.windshield-staging}/bin/";
|
|
index = "index.html";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|