programs.pyradio.enable
Whether to enable pyradio.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.pyradio.package
The pyradio package to use.
Type: null or package
Default:
pkgs.pyradio
Declared by:
programs.pyradio.settings
Options to add to the PyRadio config file.
See https://github.com/coderholic/pyradio/blob/master/pyradio/config
for available options.
Type: attribute set of (string or signed integer or boolean)
Default:
{ }
Example:
{
enable_clock = true;
enable_notifications = 0;
player = "mpv";
theme = "dark_16_colors";
time_format = 0;
use_transparency = true;
}
Declared by:
programs.pyradio.stations
Radio stations to add to the stations.csv file.
If empty, stations.csv defaults to the built-in playlist.
To add a group, add a station with the url set to “-” and the name set
to the name of the group. Its order in the list will be where it appears
in pyradio.
Type: list of (submodule)
Default:
[ ]
Example:
[
{
name = "DEF CON Radio (SomaFM)";
url = "https://somafm.com/defcon256.pls";
}
{
name = "Intense Radio - We Love Dance!";
url = "https://secure.live-streams.nl/flac.ogg";
}
]
Declared by:
programs.pyradio.stations.*.buffering
Buffering configuration to apply to the station.
Type: null or (submodule)
Default:
null
Declared by:
programs.pyradio.stations.*.buffering.bitrate
Bitrate of the stream in kbps (modify only if using MPlayer).
Type: positive integer, meaning >0
Default:
128
Declared by:
programs.pyradio.stations.*.buffering.seconds
Number of seconds to buffer the stream.
Type: positive integer, meaning >0
Declared by:
programs.pyradio.stations.*.encoding
Encoding of the station’s metadata block.
Type: string
Default:
""
Declared by:
programs.pyradio.stations.*.forceHttp
If enabled, the connection is forced to use http (note when false it can either use http or https).
Type: boolean
Default:
false
Declared by:
programs.pyradio.stations.*.iconUrl
URL of an icon to be shown in desktop notifications.
Type: string
Default:
""
Declared by:
programs.pyradio.stations.*.name
Display name of the radio station.
Type: string
Declared by:
programs.pyradio.stations.*.profile
Name of the profile to use when using mpv or mplayer.
Type: string
Default:
""
Declared by:
programs.pyradio.stations.*.url
Stream URL of the radio station.
Type: string
Declared by:
programs.pyradio.stations.*.volume
Volume to use for the station.
Type: integer between 0 and 130 (both inclusive)
Default:
50
Declared by: