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

22 lines
488 B
Nix
Raw Normal View History

2024-04-16 02:51:46 +03:00
{ config, pkgs, lib, ... }:
2024-04-22 23:43:16 +03:00
let cfg = config.local.window-manager.xmonad; in
2024-04-16 02:51:46 +03:00
{
2024-04-22 23:43:16 +03:00
options.local.window-manager.xmonad.enable = lib.mkEnableOption "window-manager";
2024-04-16 02:51:46 +03:00
2024-04-22 23:43:16 +03:00
config = lib.mkIf cfg.enable {
2024-04-16 02:51:46 +03:00
services.dbus = {
enable = true;
packages = [ pkgs.dconf ];
};
services.xserver = {
enable = true;
displayManager.defaultSession = "none+xmonad";
windowManager.xmonad.enable = true;
};
programs.gnupg.agent.pinentryFlavor = "gtk2";
};
}