Skip to content

Conversation

S0AndS0
Copy link
Member

@S0AndS0 S0AndS0 commented Sep 8, 2025

WARN:

Description

Configuration entry similar to;

programs.radio-active.enable = true;

... will produce default configuration ~/.radio-active-configs.ini

[AppConfig]
filepath = /home/{user}/recordings/radioactive/
filetype = mp3
filter = none
limit = 100
loglevel = info
player = ffplay
sort = name
volume = 80

By default ffplay is used for recording/playback, but that can be changed by applying either of the following;

programs.radio-active.appConfig.player = "vlc";
programs.radio-active.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;

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

Checklist

  • Change is backwards compatible.

    Nope

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

    Note; had to do --impure and import local pkgs due to pending PR over at NixOS/nixpkgs#441029, but should work once that's accepted and flake.lock is updated here ;-)

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

@S0AndS0 S0AndS0 marked this pull request as draft September 8, 2025 22:20
@S0AndS0 S0AndS0 force-pushed the add-radio-active branch 4 times, most recently from 1df94e4 to 321718f Compare September 15, 2025 17:06
@S0AndS0 S0AndS0 marked this pull request as ready for review September 15, 2025 17:06
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.settings.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: must be applied after NixOS/nixpkgs#441029
WARN: requires update of `flake.lock` too
@S0AndS0
Copy link
Member Author

S0AndS0 commented Sep 15, 2025

It seems CI/CD will need flake.lock updated for NixOS/nixpkgs to be at or beyond commit bb2ae01ef06ec5d7e5765cf3e9494439900b5d73 (2025-09-07)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant