nix-dotfiles/hosts/common/services/xserver.nix

37 lines
735 B
Nix
Raw Permalink Normal View History

{ config, ... }:
{
2024-06-29 02:28:20 +02:00
services.displayManager = {
enable = true;
defaultSession = "none+xmonad";
sddm = {
enable = !config.machineVars.headless;
wayland.enable = true;
};
};
services.xserver = {
enable = !config.machineVars.headless;
xkb = {
layout = "us";
options = "caps:escape";
};
# desktopManager = {
# xterm.enable = false;
# xfce.enable = !config.machineVars.headless;
# };
2024-06-29 02:28:20 +02:00
# displayManager.lightdm.enable = !config.machineVars.headless;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
enableConfiguredRecompile = true;
2024-06-29 02:28:20 +02:00
extraPackages = hPkgs: with hPkgs; [
dbus
];
};
};
}