diff options
author | lassulus <lassulus@lassul.us> | 2022-05-22 20:51:14 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-05-22 20:51:14 +0200 |
commit | 3b46460fe9f54c1ca06af31cfe715c0cb51ce1c3 (patch) | |
tree | 43a20bd17770525befe40dbcbfec6330d342b3b6 /lass/2configs/radio/default.nix | |
parent | 5befc5a6f260e2283863212b39749d5ed05afb63 (diff) |
l radio: use jc instead of sed/grep
Diffstat (limited to 'lass/2configs/radio/default.nix')
-rw-r--r-- | lass/2configs/radio/default.nix | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lass/2configs/radio/default.nix b/lass/2configs/radio/default.nix index a1e220cdb..0611be7ce 100644 --- a/lass/2configs/radio/default.nix +++ b/lass/2configs/radio/default.nix @@ -372,15 +372,13 @@ in { locations."= /good".extraConfig = '' proxy_pass http://localhost:8001; ''; - locations."= /radio.sh".extraConfig = '' - alias ${pkgs.writeScript "radio.sh" '' - #!/bin/sh - while sleep 1; do - mpv \ - --cache-secs=0 --demuxer-readahead-secs=0 --untimed --cache-pause=no \ - 'http://lassul.us:8000/radio.opus' - done - ''}; + locations."= /radio.sh".alias = pkgs.writeScript "radio.sh" '' + #!/bin/sh + while sleep 1; do + mpv \ + --cache-secs=0 --demuxer-readahead-secs=0 --untimed --cache-pause=no \ + 'http://lassul.us:8000/radio.opus' + done ''; locations."= /controls".extraConfig = '' default_type "text/html"; |