Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Home-Manager can't keep the order of options set for a program #5414

Open
2 tasks done
Andy3153 opened this issue May 17, 2024 · 0 comments
Open
2 tasks done

bug: Home-Manager can't keep the order of options set for a program #5414

Andy3153 opened this issue May 17, 2024 · 0 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@Andy3153
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

As I said in the title, if I configure the options of a program with Home-Manager, the options do not keep their order and they go in the generated file in an alphabetic order. This is bad for some programs that need an order in their options, like in my case, MangoHud puts the overlay elements in the order they're in the config file.

From what I understand, nix does not store the order of attributes, so if HM doesn't implement something I didn't see to keep the order of declared options, providing a programs.*.settings for some programs is completely useless

Maintainer CC

I see that they @rycee @zeratax worked on the MangoHud configuration, so I'm mentioning them

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.8.6-zen1, NixOS, 24.05 (Uakari), 24.05.20240512.2057814`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@Andy3153 Andy3153 added bug triage Issues or feature request that have not been triaged yet labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants