diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-05-09 17:54:45 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-05-09 17:54:45 -0500 |
commit | 4ea08b3976188eb01a74548d68b227a7794b4caa (patch) | |
tree | 505c0df98ed00ed592be15895b8ed3eb7aa9e2c3 /modules/gui.nix | |
download | nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.tar.gz nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.zip |
Add current configuration
Diffstat (limited to 'modules/gui.nix')
-rw-r--r-- | modules/gui.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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; + }; +} |