diff --git a/.versions/retiolum.json b/.versions/retiolum.json index f00226b..8bc7ede 100644 --- a/.versions/retiolum.json +++ b/.versions/retiolum.json @@ -1,9 +1,9 @@ { "url": "https://github.com/krebs/retiolum", - "rev": "72bb86741d7dcb9771b1edf2d4e015990b5ac8e9", - "date": "2021-10-05T17:02:16+02:00", - "path": "/nix/store/1ywia5hf3qyc2nhi5kz315wmcc30skbi-retiolum", - "sha256": "0dv63rcvmk6az2jy3v6kzm1s5j8wanps6890vzl91r3wxv23zan1", + "rev": "18081c610fae81c2c911b699b9688edc4fcbcd98", + "date": "2021-10-10T15:32:13+02:00", + "path": "/nix/store/9mwqqmigj1z5hf7krd6fqmccqy41wc80-retiolum", + "sha256": "0h3x7m5rizw73n3hnskr67qfnpkcc8qmrpqg32xzjxls582jm4rw", "fetchSubmodules": false, "deepClone": false, "leaveDotGit": false diff --git a/configs/bvg.nix b/configs/bvg.nix new file mode 100644 index 0000000..9dc3e2f --- /dev/null +++ b/configs/bvg.nix @@ -0,0 +1,60 @@ +{ pkgs, lib, ... }: +let + stations = [ + 900068204 # A/M + 900068302 # KAS + 900068203 # B-P + ]; + fahrplanHtml = '' + + Fahrplan + + + +
+ ${lib.concatMapStrings (station: '' + + '') stations} +
+ + ''; +in +{ + services.nginx = { + enable = true; + recommendedGzipSettings = true; + recommendedOptimisation = true; + recommendedProxySettings = true; + recommendedTlsSettings = true; + }; + + services.nginx.virtualHosts."bvg.kmein.r" = { + locations."/".extraConfig = '' + default_type "text/html"; + root ${pkgs.linkFarm "fahrplan" [{ name = "index.html"; path = pkgs.writeText "fahrplan.html" fahrplanHtml; }]}; + index index.html; + ''; + }; +} diff --git a/systems/zaatar/configuration.nix b/systems/zaatar/configuration.nix index dceec4f..70df560 100644 --- a/systems/zaatar/configuration.nix +++ b/systems/zaatar/configuration.nix @@ -12,6 +12,7 @@ + { @@ -55,7 +56,7 @@ user = config.users.extraUsers.kiosk.name; extraArguments = [ "-s" ]; # allow vt switching program = - let startUrls = [ "https://open.spotify.com" "http://localhost:${toString config.services.tuna.webPort}" ]; + let startUrls = [ "https://open.spotify.com" "http://localhost:${toString config.services.tuna.webPort}" "http://bvg.kmein.r" ]; in pkgs.writers.writeDash "kiosk-browser" '' while true; do ${pkgs.chromium}/bin/chromium \