system/modules/nixos/configs/window-manager/xmonad.nix

21 lines
488 B
Nix

{ config, pkgs, lib, ... }:
let cfg = config.local.window-manager.xmonad; in
{
options.local.window-manager.xmonad.enable = lib.mkEnableOption "window-manager";
config = lib.mkIf cfg.enable {
services.dbus = {
enable = true;
packages = [ pkgs.dconf ];
};
services.xserver = {
enable = true;
displayManager.defaultSession = "none+xmonad";
windowManager.xmonad.enable = true;
};
programs.gnupg.agent.pinentryFlavor = "gtk2";
};
}