summaryrefslogtreecommitdiff
path: root/modules/root/x11.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2024-10-02 22:37:06 -0500
committerTim Keller <tjk@tjkeller.xyz>2024-10-02 22:37:06 -0500
commit9d1b3f23a64506988608143f4bca8ab4c5141d3e (patch)
tree0955588a5f4bcb3f802b6398a537a83cdb0091e0 /modules/root/x11.nix
parent4730b215fdc4095800fedfdf690c12fec994bb6b (diff)
downloadnixos-9d1b3f23a64506988608143f4bca8ab4c5141d3e.tar.xz
nixos-9d1b3f23a64506988608143f4bca8ab4c5141d3e.zip
update moreee
Diffstat (limited to 'modules/root/x11.nix')
-rw-r--r--modules/root/x11.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/root/x11.nix b/modules/root/x11.nix
new file mode 100644
index 0000000..fd15c52
--- /dev/null
+++ b/modules/root/x11.nix
@@ -0,0 +1,30 @@
+{ pkgs, lib, config, ... }: {
+ options = {
+ xserver.enable = lib.mkEnableOption "enables xserver";
+ };
+
+ config = lib.mkIf config.xserver.enable {
+ services.xserver.enable = true;
+ services.xserver.displayManager.startx.enable = true;
+ services.libinput.enable = true; # Enable touchpad support
+
+ environment.systemPackages = with pkgs; [
+ unclutter
+ xcape
+ xclip
+ xdotool
+ xorg.setxkbmap
+ xorg.xinput
+ xorg.xkill
+ xorg.xrandr
+ xorg.xset
+ xwallpaper
+ # Patch startx to be compliant with xdg base dir spec
+ (xorg.xinit.overrideAttrs (old: rec {
+ patches = [
+ ./resources/x11/xinit-startx-xdg.patch
+ ];
+ }))
+ ];
+ };
+}