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

30 lines
656 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-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;
displayManager = {
defaultSession = "none+xmonad";
lightdm = {
enable = true;
2024-05-22 16:03:14 +03:00
# greeters.tiny.enable = true;
};
};
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
};
}