remove keyd its being stupid
This commit is contained in:
parent
d416563f3a
commit
739739d595
1 changed files with 2 additions and 16 deletions
|
|
@ -39,8 +39,6 @@ in
|
||||||
description = "Enable SDDM Wayland and Plasma Wayland session.";
|
description = "Enable SDDM Wayland and Plasma Wayland session.";
|
||||||
};
|
};
|
||||||
|
|
||||||
disableKeyd = lib.mkEnableOption "Disable keyd service for Plasma";
|
|
||||||
|
|
||||||
appearance.dark.enable = mkOption {
|
appearance.dark.enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
@ -159,20 +157,8 @@ in
|
||||||
layout = "us";
|
layout = "us";
|
||||||
};
|
};
|
||||||
|
|
||||||
users.groups.keyd = mkIf (!cfg.disableKeyd) { };
|
# CapsLock → Escape remap (works on Plasma Wayland)
|
||||||
services.keyd = mkIf (!cfg.disableKeyd) {
|
services.xserver.xkb.options = lib.mkDefault "caps:escape";
|
||||||
enable = true;
|
|
||||||
keyboards.default.settings = {
|
|
||||||
main = {
|
|
||||||
capslock = "escape";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# `keyd` drops privileges via `setgid(2)`, but the upstream unit
|
|
||||||
# uses `RestrictSUIDSGID=yes`, which blocks that and causes:
|
|
||||||
# "setgid: Operation not permitted".
|
|
||||||
systemd.services.keyd.serviceConfig.RestrictSUIDSGID = mkIf (!cfg.disableKeyd) false;
|
|
||||||
|
|
||||||
# Home Manager modules (plasma-manager + our HM layer)
|
# Home Manager modules (plasma-manager + our HM layer)
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue