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 = {
|
services.xserver = {
|
||||||
layout = "us";
|
layout = "us";
|
||||||
xkbOptions = "compose:ralt";
|
xkbOptions = "compose:ralt";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.kmonad = {
|
services.kmonad = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keyboards.dasKeyboard = {
|
keyboards =
|
||||||
device = "/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd";
|
let
|
||||||
|
keyboard = device: {
|
||||||
|
device = device;
|
||||||
extraGroups = [ "video" ];
|
extraGroups = [ "video" ];
|
||||||
defcfg = {
|
defcfg = {
|
||||||
enable = true;
|
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