blob: 745739e9cf69c9aa26e6be9c5b34730b13c7be27 [file] [log] [blame]
{ 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;
};
}