Skip to content

Key-Value pairs in the Yabar configuration #59883

@BKer

Description

@BKer

Issue description

The nixpkgs/nixos/modules/programs/yabar.nix file allows for adding extra parameters using the .extra parameter. The extra parameters are a key-value pair. This is perfect, however it turns the values into strings and for example the background-color-rgb does not take a String value type. There are several more non String options, see: https://github.com/geommer/yabar/wiki/Bar-specific-options

Steps to reproduce

Edit configuration.nix and add:

programs.yabar.enable = true;
programs.yabar.bars.topbar.extra: { background-color-rgb = "0x0000ff";};

Of course also run a rebuild
Effect, the bar does not change to the desired color.

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

  • system: "x86_64-linux"
  • host os: Linux 4.19.33-hardened, NixOS, 19.09pre174415.d956f2279b8 (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.2
  • channels(root): "nixos-19.09pre174415.d956f2279b8"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

PS. This is all to the best of my current knowledge, as I'm pretty new to NixOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md9.needs: module (update)This needs a module to be changed
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions