{ pkgs, config, ... }: let inherit (config.users) users; in { services.xserver = { enable = true; layout = "fr,us(altgr-intl)"; xkbOptions = "eurosign:e, compose:menu, grp:alt_space_toggle"; libinput.enable = true; exportConfiguration = true; # link /usr/share/X11/ properly desktopManager = { session = [ # Let the session be generated by home-manager { name = "home-manager"; start = '' ${pkgs.runtimeShell} $HOME/.hm-xsession & waitPID=$! ''; bgSupport = true; } ]; }; }; services.displayManager = { defaultSession = "home-manager"; #defaultSession = "none+xmonad"; startx.enable = true; #lightdm.enable = true; #lightdm.greeter.enable = false; #lightdm.greeters.tiny.enable = true; autoLogin = { enable = true; user = users.julm.name; }; }; environment.systemPackages = [ pkgs.arandr ]; console.useXkbConfig = true; sound.enable = true; hardware.pulseaudio.enable = true; /* services.x2goserver = { enable = true; }; environment.sessionVariables = { PATH = [ "/usr/local/bin" ]; }; services.xserver.displayManager.xserverArgs = [ "+iglx" ]; */ }