1
0
mirror of https://github.com/kmein/niveum synced 2026-03-29 16:51:07 +02:00

4 Commits

4 changed files with 31 additions and 7 deletions

View File

@@ -29,6 +29,7 @@ in
bedroom = 131082;
living-room = living-room-id;
bedside = 131087;
desk = 131089;
};
};
}

View File

@@ -41,6 +41,11 @@ let
provider = "Radio Sai";
inherit name;
};
caster-fm = name: subdomain: port: {
url = "http://${subdomain}.caster.fm:${toString port}/listen.mp3?authn0b0236758bd0e178156d0787327a055d";
provider = "caster.fm";
inherit name;
};
in
{
Chill = {
@@ -56,12 +61,6 @@ in
name = "Radio";
provider = "electroswing-radio.com";
}
{
url = "https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1606225326/ei/Tbm8X_LDOsLd1gKi-rVA/ip/2001:16b8:c2aa:1100:492d:381c:2efa:7e32/id/5qap5aO4i9A.0/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r2---sn-8xgn5uxa-cxge.googlevideo.com/playlist_duration/30/manifest_duration/30/vprv/1/playlist_type/DVR/initcwndbps/13080/mh/30/mm/44/mn/sn-8xgn5uxa-cxge/ms/lva/mv/m/mvi/2/pcm2cms/yes/pl/40/dover/11/keepalive/yes/beids/9466585/mt/1606203379/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,playlist_duration,manifest_duration,vprv,playlist_type/sig/AOq0QJ8wRgIhAO_wKhb-NVX96XUsdZ_0towJsCs_VToFoi5CgUIOE45NAiEA48XX0D4HP-6ym_4nB6GSx_szjmZsYIzP8VRRTWMaD1o%3D/lsparams/hls_chunk_host,initcwndbps,mh,mm,mn,ms,mv,mvi,pcm2cms,pl/lsig/AG3C_xAwRAIgdsMa8V_pRLQKIIqBCjb-IUEoUheXL0-rlDiICHNKIC0CIHtvYseocMA1hfmQoX9J9rSlBW19Nl_52j0tmVeSBy-J/playlist/index.m3u8";
# obtained using `youtube-dl -g https://www.youtube.com/watch?v=5qap5aO4i9A`
name = "lofi hip hop radio - beats to relax/study to";
provider = "ChilledCow";
}
(rautemusik "study")
(big-fm "reggaevibes")
(big-fm "sunsetlounge")
@@ -99,6 +98,8 @@ in
(soma-fm "missioncontrol") # Celebrating NASA and Space Explorers everywhere.
(soma-fm "reggae") # NEW! Reggae, Ska, Rocksteady classic and deep tracks.
(soma-fm "sf1033") # Ambient music mixed with the sounds of San Francisco public safety radio traffic.
(caster-fm "TODO" "noasrv" 10182) # https://github.com/cccruzr/albumsyoumusthear/blob/7e00baf575e4d357cd275d54d1aeb717321141a8/HLS/IBERO_90_1.m3u
(caster-fm "TODO" "shaincast" 20866) # https://github.com/cccruzr/albumsyoumusthear/blob/7e00baf575e4d357cd275d54d1aeb717321141a8/HLS/IBERO_90_1.m3u
];
};
@@ -275,6 +276,7 @@ in
name = "Hindustani";
url = "http://94.23.148.11:8058/";
}
(caster-fm "Sitha FM" "shaincast" 48148)
(radiosai "Asia" 8002)
(radiosai "Ameri" 8006)
(radiosai "Bhajan" 8000)
@@ -302,6 +304,7 @@ in
name = "Klassikradio";
provider = "Klassik Radio GmbH & Co. KG";
}
(caster-fm "Antenne-ASB.ga" "shaincast" 17656)
# "http://stream.klassikradio.de/live/mp3-192/stream.klassikradio.de"
# (soma-fm "scanner") # San Francisco Public Safety Scanner Feed
(rautemusik "rock")

14
packages/worldradio.nix Normal file
View File

@@ -0,0 +1,14 @@
{ jq, runCommand, fetchFromGitHub }:
let
online-radio = fetchFromGitHub {
owner = "josiahmokob0";
repo = "online-radio";
rev = "04d16421355196194a05e5504ba8f66a9c07ee7b";
sha256 = "1q0iagx7df0sd6vl5anvpzyiw4jdwa6c67z45rx622a6cr6m4zzl";
};
in runCommand "worldradio.m3u" {} ''
${jq}/bin/jq --raw-output --slurp 'flatten | map(.url_resolved) | .[]' ${online-radio}/src/data/countries/*.json \
| sort \
| uniq \
> $out
''

View File

@@ -15,10 +15,16 @@
sound.enable = true;
}
{
environment.systemPackages = [
environment.systemPackages =
let
worldradio = pkgs.callPackage <niveum/packages/worldradio.nix> {};
in [
(pkgs.writers.writeDashBin "mpv" ''
${pkgs.mpv}/bin/mpv --no-video "$@"
'')
(pkgs.writers.writeDashBin "worldradio" ''
shuf ${worldradio} | ${pkgs.findutils}/bin/xargs ${pkgs.mpv}/bin/mpv --no-video
'')
];
}
{