nixos/ly: Not possibe to define custom commands or labels
Nobody has claimed this yet.
- 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
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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