{ config, pkgs, lib, ... }: with lib; let xorg = (elem "xorg" config.sys.graphics.desktopProtocols); in { config= mkIf xorg { services.xserver = { enable = true; layout = "us"; xkbOptions = "eurosign:e"; libinput.enable = true; desktopManager = { xterm.enable = false; }; displayManager = { lightdm.enable = true; defaultSession = "none+i3"; }; windowManager = { i3.enable = true; }; }; services.gnome.gnome-keyring.enable = true; services.gvfs.enable = true; }; }