21 lines
456 B
Nix
21 lines
456 B
Nix
|
{ 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";
|
||
|
};
|
||
|
}
|