Skip to content

Conversation

S0AndS0
Copy link

@S0AndS0 S0AndS0 commented Aug 27, 2025

Configuration entry similar to;

    programs.pianobar = {
      enable = true;
      user = "[email protected]";
      password_command = "cat /run/secrets/pianobar/groovy-tunes";
    };

... will produce a ~/.config/pianobar/config file with content of;

password_command = cat /run/secrets/pianobar/groovy-tunes
user = [email protected]

... and add pianobar to home.packages list.

All configurations, types hints, and description that man pianobar documents are available. However, some help on checking for conflicting config states would be much appreciated.

License, according to NixOS/nixpkgs is MIT, and that seems to match what's shown on PromyLOPh/pianobar repo too;

Description

Add module to enable declarative configuration of pianobar

Checklist

  • Change is backwards compatible.

  • 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.

  • 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

      Dead link?

    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

Configuration entry similar to;

```nix
    programs.pianobar = {
      enable = true;
      user = "[email protected]";
      password_command = "cat /run/secrets/pianobar/groovy-tunes";
    };
```

... will produce a `~/.config/pianobar/config` file with content of;

```conf
password_command = cat /run/secrets/pianobar/groovy-tunes
user = [email protected]
```

...  and add `pianobar` to `home.packages` list.

All configurations, types hints, and description that `man pianobar`
documents are available.  However, some help on checking for conflicting
config states would be much appreciated.

License, according to `NixOS/nixpkgs` is MIT, and that seems to match
what's shown on `PromyLOPh/pianobar` repo too;

- https://github.com/NixOS/nixpkgs/blob/d92bfd5feb7bc6d9be3022fcfd9d674bff14fc2d/pkgs/by-name/pi/pianobar/package.nix#L42o
- https://github.com/PromyLOPh/pianobar/?tab=License-1-ov-file#readme
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