From 4ea08b3976188eb01a74548d68b227a7794b4caa Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Fri, 9 May 2025 17:54:45 -0500 Subject: Add current configuration --- modules/gui.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/gui.nix (limited to 'modules/gui.nix') diff --git a/modules/gui.nix b/modules/gui.nix new file mode 100644 index 0000000..376afb5 --- /dev/null +++ b/modules/gui.nix @@ -0,0 +1,20 @@ +{ 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 ]; + }; + }; + + 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; + }; +} -- cgit v1.2.3