2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-11-04 04:37:29 +03:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.module.desktop.dm;
|
|
|
|
in {
|
|
|
|
options.module.desktop.dm.enable = lib.mkEnableOption "the display manager.";
|
2024-06-25 04:04:39 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
xkb = {
|
|
|
|
layout = config.module.keyboard.layouts;
|
|
|
|
options = config.module.keyboard.options;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 07:51:33 +03:00
|
|
|
}
|