improved kmonad
This commit is contained in:
parent
951dff8dec
commit
d4507b8176
1 changed files with 55 additions and 38 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue