-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Update NixOS Module evremap #362661
Update NixOS Module evremap #362661
Conversation
allow the key to be remapped start with BTN as well as KEY, to enable remapping of mouse buttons
adds the optional attribute `phys` to uniquely identify a single device, if multiple devices share the same name
filter out attrsets with a `null` value as toml doesn't support it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not
@pluiedev done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except I think you should probably squash the fixup commits and split changes based on areas you've changed (e.g. add phys option and allow BTN_* keys)
Sorry if this is getting tedious but you mean in to squash in 3 commits right?
or do you mean squash into a single commit to have the PR as a single change? |
No, just the first two commits (I believe the third commit, d22eeb2, is only needed because of the phys option, so it should be squashed into that commit) |
adds the optional attribute `phys` to uniquely identify a single device, if multiple devices share the same name nixos/evremap: fix toml config generation filter out attrsets with a `null` value as toml doesn't support it nixos/evremap: use nixfmt nixos/evremap: incorporate changes from review
I think I borked it |
What steps are necessary to get this merged? |
Get the attention of a committer and/or linking this PR to the "PRs already reviewed" thread on the NixOS Discourse |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/2151 |
I have updated the NixOS Module evremap.
I expanded the type for remappable keys to include
BTN
.I added the optional
phys
attribute, which can be used if multiple devices share the same name. As toml doesn't supportnull
values, I added a filter function to the toml generation.When testing the
phys
attribute, an error occurs that prevents the service to start if you try to switch to the new generation without a reboot. The software wants to create a uinput device but some permissions were not set immediately. After rebooting the same config worked. I'm unsure if this is something to include in the description of the attribute.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.