This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.iptv: init

+26
+22
tools/iptv/flake-module.nix
··· 1 + { ... }: 2 + { 3 + perSystem = 4 + { pkgs, ... }: 5 + { 6 + # Listen to TV channels from the iptv-org playlist, audio only, on this 7 + # machine's default output. mpv's keys switch channels (< and >). 8 + packages.iptv = 9 + (pkgs.writeShellApplication { 10 + name = "iptv"; 11 + runtimeInputs = [ pkgs.mpv ]; 12 + text = '' 13 + exec mpv \ 14 + --no-video \ 15 + --audio-display=no \ 16 + --playlist=https://iptv-org.github.io/iptv/index.m3u \ 17 + "$@" 18 + ''; 19 + }).overrideAttrs 20 + { passthru.usage = builtins.readFile ./usage.kdl; }; 21 + }; 22 + }
+4
tools/iptv/usage.kdl
··· 1 + bin "iptv" 2 + about "Listen to TV channels from the iptv-org playlist, audio only, on this machine (mpv; < and > switch channels)" 3 + long_about "Runs mpv with --no-video on https://iptv-org.github.io/iptv/index.m3u. Extra arguments go to mpv, e.g. --playlist-start=<n> or --shuffle." 4 + arg "[mpv_args...]" help="Extra mpv arguments" var=#true