2023-06-11 23:09:59 +02:00
|
|
|
{
|
2023-12-10 16:01:32 +01:00
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(lib)
|
|
|
|
getExe
|
|
|
|
singleton
|
|
|
|
;
|
|
|
|
in {
|
|
|
|
xdg.portal = {
|
|
|
|
config = {
|
|
|
|
common = {
|
|
|
|
default = [
|
|
|
|
"gtk"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-06-28 14:21:19 +02:00
|
|
|
enable = true;
|
|
|
|
xdgOpenUsePortal = true;
|
|
|
|
extraPortals = singleton pkgs.xdg-desktop-portal-gtk;
|
|
|
|
};
|
|
|
|
|
2023-06-11 23:09:59 +02:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
windowManager = {
|
|
|
|
xmonad.enable = true;
|
|
|
|
xmonad.enableContribAndExtras = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
displayManager = {
|
|
|
|
lightdm.enable = true;
|
|
|
|
defaultSession = "none+xmonad";
|
|
|
|
};
|
|
|
|
|
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-02-09 19:35:47 +01:00
|
|
|
xkb = {
|
|
|
|
layout = "de,de,mine,us";
|
|
|
|
variant = "koy,neo_qwerty,mine,";
|
|
|
|
options = "ctrl:swap_lalt_lctl_lwin, altwin:menu_win, grp:sclk_toggle";
|
2023-06-11 23:09:59 +02:00
|
|
|
|
2024-02-09 19:35:47 +01:00
|
|
|
extraLayouts."neo_qwerty" = {
|
|
|
|
description = "QWERTY neo2 layout.";
|
|
|
|
languages = ["de"];
|
|
|
|
symbolsFile = ./qwerty_neo.xkb;
|
|
|
|
};
|
2023-06-11 23:09:59 +02:00
|
|
|
|
2024-02-09 19:35:47 +01:00
|
|
|
extraLayouts."mine" = {
|
|
|
|
description = "mine neo layout.";
|
|
|
|
languages = ["de"];
|
|
|
|
symbolsFile = ./mine.xkb;
|
|
|
|
};
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
opengl.enable = true;
|
|
|
|
opengl.driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
console.useXkbConfig = true;
|
|
|
|
}
|