| { pkgs, home, config, ... }: { |
| home = { |
| xsession = { |
| windowManager.xmonad = { |
| enable = true; |
| enableContribAndExtras = true; |
| config = ./xmonad/xmonad.hs; |
| extraPackages = haskellPackages: with haskellPackages; [ |
| ]; |
| }; |
| }; |
| programs.zsh.profileExtra = '' |
| if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then |
| exec ${pkgs.systemd}/bin/systemd-cat -t xmonad ${pkgs.xorg.xinit}/bin/startx |
| fi |
| ''; |
| home.file.".xinitrc".text = '' |
| ${home.xsession.windowManager.command} |
| ''; |
| }; |
| config.services.xserver = { |
| enable = true; |
| layout = "gb"; |
| displayManager.startx.enable = true; |
| }; |
| } |