mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
Configuration entry similar to; ```nix programs.radio-active.enable = true; ``` By default `ffplay` is used for recording/playback, but that can be changed by applying either of the following; ```nix programs.radio-active.settings.AppConfig.player = "vlc"; programs.radio-active.settings.AppConfig.player = "mpv"; ``` All other configuration options documented by; https://github.com/deep5050/radio-active?tab=readme-ov-file#default-configs maybe applied under the `AppConfig` attribute set. Finally, the `aliases` attribute set allows for defining key/value pares that will generate a `~/.radio-active-alias` of bookmarked stations, for example something like; ```nix programs.radio-active.aliases = { "Deep House Lounge" = "http://198.15.94.34:8006/stream"; }; ``` ... will result in; ``` Deep House Lounge==http://198.15.94.34:8006/stream ``` WARN: Darwin hosts may report issues about `pkgs.vlc` Co-authored-by: Robert Helgesson <robert@rycee.net>
32 lines
742 B
Nix
32 lines
742 B
Nix
{
|
|
programs.radio-active = {
|
|
enable = true;
|
|
|
|
settings.AppConfig = {
|
|
filepath = "/mnt/{user}/recordings/radioactive/";
|
|
filetype = "auto";
|
|
filter = "name=shows";
|
|
limit = 41;
|
|
loglevel = "debug";
|
|
player = "ffplay";
|
|
sort = "random";
|
|
volume = 68;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/radio-active/configs.ini
|
|
assertFileContent home-files/.config/radio-active/configs.ini \
|
|
${builtins.toFile "expected.radio-active_configs.ini" ''
|
|
[AppConfig]
|
|
filepath=/mnt/{user}/recordings/radioactive/
|
|
filetype=auto
|
|
filter=name=shows
|
|
limit=41
|
|
loglevel=debug
|
|
player=ffplay
|
|
sort=random
|
|
volume=68
|
|
''}
|
|
'';
|
|
}
|