{ lib, pkgs, config, ... }: { options = { this.gui.enable = lib.mkEnableOption "GUI"; this.gui.extraPackages = lib.mkOption { type = with lib.types; listOf package; default = with pkgs; [ xorg.xmodmap xorg.xkbcomp xorg.xdpyinfo xclip ]; }; }; config = lib.mkIf config.this.gui.enable { services.xserver.enable = true; services.xserver.displayManager.startx.enable = true; services.speechd.enable = false; services.openssh.settings.X11Forwarding = true; environment.systemPackages = config.this.gui.extraPackages; }; }