improved kmonad

This commit is contained in:
Ingolf Wagner 2023-06-02 16:40:40 +02:00
parent 951dff8dec
commit d4507b8176
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,13 +1,24 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
options.components.gui.kmonad.enable = lib.mkOption {
type = lib.types.bool;
default = config.components.gui.enable;
};
config = lib.mkIf (config.components.gui.kmonad.enable) {
services.xserver = {
layout = "us";
xkbOptions = "compose:ralt";
};
services.kmonad = {
enable = true;
keyboards.dasKeyboard = {
device = "/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd";
keyboards =
let
keyboard = device: {
device = device;
extraGroups = [ "video" ];
defcfg = {
enable = true;
@ -42,5 +53,11 @@
'';
};
in
{
nativ = keyboard "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
dasKeyboard = keyboard "/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd";
};
};
};
}