1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 12:21:08 +01:00

feat: reactivate tuna

This commit is contained in:
2022-01-28 12:50:23 +01:00
parent fe8af09148
commit 5524f3b92b
3 changed files with 5 additions and 6 deletions

6
flake.lock generated
View File

@@ -158,11 +158,11 @@
"retiolum": { "retiolum": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1643137996, "lastModified": 1643369411,
"narHash": "sha256-Fvmq2i8l9drzU91uvHmx0eeqr06/o+y28RgVmwcTYZ4=", "narHash": "sha256-FRfEQdRJxVF6w41jgjQXDtK5YxIjDh5S4acA0FbwPyE=",
"owner": "krebs", "owner": "krebs",
"repo": "retiolum", "repo": "retiolum",
"rev": "bbed4ffd74987bb9a577ae6290ed446c3f27f594", "rev": "23e04565a0360d31605a6c6cdc1becb5b9f76f32",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -10,7 +10,7 @@
user = config.users.extraUsers.kiosk.name; user = config.users.extraUsers.kiosk.name;
extraArguments = [ "-s" ]; # allow vt switching extraArguments = [ "-s" ]; # allow vt switching
program = program =
let startUrls = [ "https://open.spotify.com" "https://youtube.com" "http://bvg.kmein.r" ]; let startUrls = [ "https://youtube.com" "http://radio.kmein.r" ];
in pkgs.writers.writeDash "kiosk-browser" '' in pkgs.writers.writeDash "kiosk-browser" ''
while true; do while true; do
${pkgs.brave}/bin/brave \ ${pkgs.brave}/bin/brave \

View File

@@ -81,6 +81,7 @@ in
stations = lib.lists.imap0 (id: {desc ? "", logo ? "https://picsum.photos/seed/${builtins.hashString "md5" stream}/300", stream, station}: { inherit id desc logo stream station; }) streams; stations = lib.lists.imap0 (id: {desc ? "", logo ? "https://picsum.photos/seed/${builtins.hashString "md5" stream}/300", stream, station}: { inherit id desc logo stream station; }) streams;
stationsJson = (pkgs.formats.json {}).generate "stations.json" stations; stationsJson = (pkgs.formats.json {}).generate "stations.json" stations;
in { in {
enable = false;
wantedBy = [ "tuna.service" ]; wantedBy = [ "tuna.service" ];
startAt = "hourly"; startAt = "hourly";
script = '' script = ''
@@ -95,7 +96,6 @@ in
}; };
/*
services.nginx = { services.nginx = {
enable = true; enable = true;
recommendedGzipSettings = true; recommendedGzipSettings = true;
@@ -110,5 +110,4 @@ in
}; };
}; };
}; };
*/
} }