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

29 lines
663 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 ];
};
2024-06-03 00:08:07 +03:00
services.displayManager.defaultSession = "none+xmonad";
2024-04-16 02:51:46 +03:00
services.xserver = {
enable = true;
2024-06-03 00:08:07 +03:00
displayManager.lightdm = {
enable = true;
# greeters.tiny.enable = true;
};
2024-04-16 02:51:46 +03:00
windowManager.xmonad.enable = true;
};
2024-06-03 00:08:07 +03:00
programs.gnupg.agent.pinentryPackage = pkgs.pinentry-gtk2;
2024-05-18 15:42:44 +03:00
local.lockscreen.i3lock.enable = lib.mkDefault true;
2024-04-16 02:51:46 +03:00
};
}