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-05-18 15:42:44 +03:00
|
|
|
options.local.window-manager.xmonad.enable = lib.mkEnableOption "xmonad";
|
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;
|
2024-05-21 18:16:51 +03:00
|
|
|
displayManager = {
|
|
|
|
defaultSession = "none+xmonad";
|
|
|
|
lightdm = {
|
|
|
|
enable = true;
|
2024-05-22 16:03:14 +03:00
|
|
|
# greeters.tiny.enable = true;
|
2024-05-21 18:16:51 +03:00
|
|
|
};
|
|
|
|
};
|
2024-04-16 02:51:46 +03:00
|
|
|
windowManager.xmonad.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gnupg.agent.pinentryFlavor = "gtk2";
|
2024-05-18 15:42:44 +03:00
|
|
|
|
|
|
|
local.lockscreen.i3lock.enable = lib.mkDefault true;
|
2024-04-16 02:51:46 +03:00
|
|
|
};
|
|
|
|
}
|