nix-dotfiles/hosts/common/services/xserver.nix
h7x4 dbea006c50
hosts/common: split into multiple files
also add smartd, systemd-lock-handler and usbtop
2024-08-12 17:36:13 +02:00

26 lines
534 B
Nix

{ config, ... }:
{
services.xserver = {
enable = !config.machineVars.headless;
xkb = {
layout = "us";
options = "caps:escape";
};
# desktopManager = {
# xterm.enable = false;
# xfce.enable = !config.machineVars.headless;
# };
displayManager.lightdm.enable = !config.machineVars.headless;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
enableConfiguredRecompile = true;
extraPackages = hPkgs: with hPkgs; [ dbus ];
};
};
}