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

32 lines
656 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.dunste.enable = true;
cfg.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;
};
};
}