mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-01 20:46:12 +01:00
48 lines
900 B
Nix
48 lines
900 B
Nix
|
{ pkgs, lib, ... }:
|
||
|
let
|
||
|
inherit (lib)
|
||
|
getExe;
|
||
|
in
|
||
|
{
|
||
|
services.xserver = {
|
||
|
enable = true;
|
||
|
|
||
|
windowManager = {
|
||
|
xmonad.enable = true;
|
||
|
xmonad.enableContribAndExtras = true;
|
||
|
};
|
||
|
|
||
|
displayManager = {
|
||
|
lightdm.enable = true;
|
||
|
defaultSession = "none+xmonad";
|
||
|
};
|
||
|
|
||
|
libinput = {
|
||
|
enable = true;
|
||
|
};
|
||
|
|
||
|
layout = "de,de,mine,us";
|
||
|
xkbVariant = "koy,neo_qwerty,mine,";
|
||
|
xkbOptions = "ctrl:swap_lalt_lctl_lwin, altwin:menu_win, grp:sclk_toggle";
|
||
|
|
||
|
extraLayouts."neo_qwerty" = {
|
||
|
description = "QWERTY neo2 layout.";
|
||
|
languages = ["de"];
|
||
|
symbolsFile = ./qwerty_neo.xkb;
|
||
|
};
|
||
|
|
||
|
extraLayouts."mine" = {
|
||
|
description = "mine neo layout.";
|
||
|
languages = ["de"];
|
||
|
symbolsFile = ./mine.xkb;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
hardware = {
|
||
|
opengl.enable = true;
|
||
|
opengl.driSupport32Bit = true;
|
||
|
};
|
||
|
|
||
|
console.useXkbConfig = true;
|
||
|
}
|