dotfiles/nixos/common/xserver.nix
Magic_RB 090684d8f5
Enable xdg-desktop-portal, required by newer versions of Steam
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-28 14:21:19 +02:00

55 lines
1 KiB
Nix

{ pkgs, lib, ... }:
let
inherit (lib)
getExe
singleton;
in
{
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = singleton pkgs.xdg-desktop-portal-gtk;
};
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;
}