Keyd : Fix toggle access.

This commit is contained in:
Dmitry Voronin 2024-05-06 22:11:33 +03:00
parent cab1b0f0b2
commit 220c064fa5
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 7 additions and 1 deletions

View file

@ -54,5 +54,6 @@ in {
]; ];
}; };
systemd.services.keyd.path = [ script ];
environment.systemPackages = [ script ]; environment.systemPackages = [ script ];
} }

View file

@ -20,5 +20,6 @@ in {
} // args)) } // args))
]; ];
systemd.services.keyd.path = [ script ];
environment.systemPackages = [ script ]; environment.systemPackages = [ script ];
} }

View file

@ -17,5 +17,6 @@ in {
} // args)) } // args))
]; ];
systemd.services.keyd.path = [ script ];
environment.systemPackages = [ script ]; environment.systemPackages = [ script ];
} }

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { pkgs, lib, ... }: {
environment.systemPackages = with pkgs; [ keyd ]; environment.systemPackages = with pkgs; [ keyd ];
services.keyd = { services.keyd = {
enable = true; enable = true;
@ -57,4 +57,7 @@
# HACK: Workaround for https://github.com/NixOS/nixpkgs/issues/290161 # HACK: Workaround for https://github.com/NixOS/nixpkgs/issues/290161
users.groups.keyd = {}; users.groups.keyd = {};
systemd.services.keyd.serviceConfig.CapabilityBoundingSet = [ "CAP_SETGID" ]; systemd.services.keyd.serviceConfig.CapabilityBoundingSet = [ "CAP_SETGID" ];
# HACK: Workaround for powersave/powerlimit scripts.
systemd.services.keyd.serviceConfig.ProtectKernelTunables = lib.mkForce false;
} }