{ config, lib, pkgs, ... }: { xsession.windowManager.xmonad = { enable = true; enableContribAndExtras = true; config = pkgs.stdenv.mkDerivation { name = "xmonad-config"; src = ./xmonad.hs; dontUnpack = true; terminal = "${pkgs.rxvt-unicode}/bin/urxvt"; dmenu = "${pkgs.rofi}/bin/rofi -combi-modi window,run -show combi -modi combi"; installPhase = '' substituteAll "$src" "$out" ''; }; }; xsession.enable = true; xsession.initExtra = '' # source .Xmodmap to get key rebindings ${pkgs.xorg.xmodmap}/bin/xmodmap .Xmodmap # disable mouse acceleration ${pkgs.xorg.xinput}/bin/xinput --set-prop \ 'Logitech G500s Laser Gaming Mouse' \ 'libinput Accel Profile Enabled' 0, 1 # make displayport input the primary monitor ${pkgs.xorg.xrandr}/bin/xrandr --output DP-0 --primary ''; xsession.pointerCursor = { defaultCursor = "left_ptr"; package = pkgs.vanilla-dmz; name = "Vanilla-DMZ-AA"; size = 16; }; # adding dzen to path because I cannot for the life of me figure # out how to add it to xmonad's path home.packages = with pkgs; [ dzen2 ]; }