add option to disable keyd

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-17 23:39:03 -06:00
parent 827ba897ba
commit a4136e2e58

View file

@ -39,6 +39,8 @@ 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;
@ -156,7 +158,7 @@ in
services.xserver.xkb = { services.xserver.xkb = {
layout = "us"; layout = "us";
}; };
services.keyd = { services.keyd = mkIf (!cfg.disableKeyd) {
enable = true; enable = true;
keyboards.default.settings = { keyboards.default.settings = {
main = { main = {