NixOS / NixOS/nixpkgs

nixos/ly: Not possibe to define custom commands or labels

Open
#533,271 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0.kind: bug 0.kind: enhancement 6.topic: nixos
Dominant language
Nix
Stars
26.2k
Forks
20.1k
PR merge metrics
PR metrics pending

Description

Nixpkgs version
  • Unstable (26.11)
Describe the bug

In ly config file, custom commands and labels are configured as separate ini sections.

https://github.com/fairyglade/ly/blob/master/res/config.ini#L417

Unless I'm misunderstanding something, it's not possible to add these to the config.ini that the ly module generates, as all settings are added verbatim under globalSection.

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/display-managers/ly.nix#L61

Steps to reproduce
Expected behaviour

Module option for declaring custom commands and labels, or alternatively extraConfig option to append raw text to the ini file.

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

not relevant

Notify maintainers

@zacharyarnaise @Vonfry


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs
Is this issue important to you?

Add a 👍 reaction to issues you find important.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with nixos/modules/services/display-managers/ly.nix, especially the globalSection handling, and compare it with ly's res/config.ini sections for custom commands and labels. Determine whether dedicated module options or an extraConfig option best supports those sections, then verify that the generated ly configuration can represent them correctly.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.