1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-04 08:01:02 +01:00

pianobar: add module to create config file (#7734)

Configuration entry similar to;

```nix
    programs.pianobar = {
      enable = true;
      user = "groovy-tunes@example.com";
      password_command = "cat /run/secrets/pianobar/groovy-tunes";
    };
```

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

```conf
user = groovy-tunes@example.com
password_command = cat /run/secrets/pianobar/groovy-tunes
```

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

All configurations that `man pianobar` documents _should_ available via
`extraOptions` attribute.

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

- d92bfd5feb/pkgs/by-name/pi/pianobar/package.nix (L42o)
- https://github.com/PromyLOPh/pianobar/?tab=License-1-ov-file#readme
This commit is contained in:
S0AndS0 2025-09-10 03:43:46 +00:00 committed by GitHub
parent ede1f891c0
commit a60021a8c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 204 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{
time = "2025-09-06T17:04:11+00:00";
condition = true;
message = ''
A new module is available: 'programs.pianobar'.
`pianobar` is a console front-end for Pandora.com and provides options to
extend with third-party applications or scripts. This module enables
declarative configuration of all documented options.
'';
}