2024-12-02 21:28:35 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.local.sys.graphics;
|
|
|
|
in {
|
|
|
|
options.local.sys.graphics = {
|
|
|
|
enable = mkEnableOption "graphics settings";
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
2024-12-02 21:57:33 +01:00
|
|
|
services = {
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
2024-12-03 03:38:10 +01:00
|
|
|
xkb.layout = "us";
|
|
|
|
displayManager.startx.enable = true;
|
2024-12-02 21:57:33 +01:00
|
|
|
};
|
2024-12-02 21:28:35 +01:00
|
|
|
libinput.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.graphics.enable = true;
|
|
|
|
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
};
|
|
|
|
}
|