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

21 lines
456 B
Nix
Raw Normal View History

2024-04-16 02:51:46 +03:00
{ config, pkgs, lib, ... }:
{
options.local.window-manager.enable = lib.mkEnableOption "window-manager";
config = lib.mkIf config.local.window-manager.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";
};
}