-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
nixos/keymapper: init module #328921
base: master
Are you sure you want to change the base?
nixos/keymapper: init module #328921
Conversation
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.
You have quite a complex logic to create the configuration.
What do you think of a module test to ensure that the configuration is created correctly?
, lib | ||
, ... | ||
}: | ||
with lib; |
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.
use inherit (lib) mkOption types ...;
instead, see #208242
in | ||
{ | ||
options.services.keymapper = { | ||
enable = lib.mkEnableOption null // { |
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.
replace null with "keymapper"
, to generate documentation correctly
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.
I have not checked the logic for creating the configuration. Maybe that can be improved.
@ofborg test keymapper |
2966734
to
db4a58d
Compare
A github workflow has been adjusted (#326407), could you trigger the ci again by pushing a new commit?
|
The new Github workflow should have been run though. I checked the Github action on commit |
@spitulax Just so you know, you need to cleanup the commit history (by git rebase), before this can be reviewed and merged. |
Added option to enable `keymapperd` service used to provide communication between the user-level program `keymapper` which needs permission to grab keyboard and inject keys.
cd69bad
to
39f0395
Compare
Description of changes
Added NixOS module services.keymapper to enable
keymapperd
service used to provide communication between the user-level programkeymapper
which needs permission to grab keyboard and inject keys.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.