1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/modules/xmonad.nix
2023-05-09 13:48:41 +02:00

32 lines
673 B
Nix

{
config,
pkgs,
lib,
...
}:
with lib; {
config = let
cfg = config.elss.graphical.xmonad;
in
mkIf cfg.enable {
elss.graphical.xserver.enable = true;
elss.users.dunst.enable = true;
elss.graphical.xmonad.polybar.enable = true;
services = {
xserver = {
startDbusSession = true;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
};
displayManager.defaultSession = "none+xmonad";
libinput = {
enable = true;
disableWhileTyping = true;
};
};
upower.enable = true;
};
};
}