summaryrefslogtreecommitdiff
path: root/modules/root/x11.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/root/x11.nix')
-rw-r--r--modules/root/x11.nix54
1 files changed, 0 insertions, 54 deletions
diff --git a/modules/root/x11.nix b/modules/root/x11.nix
deleted file mode 100644
index f5a07b4..0000000
--- a/modules/root/x11.nix
+++ /dev/null
@@ -1,54 +0,0 @@
-{ 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
-
- # Apply startx patch to create serverauth file in /tmp instead of home directory
- nixpkgs.overlays = with pkgs; [
- (final: prev: {
- xorg = prev.xorg // {
- xinit = (prev.xorg.xinit.overrideAttrs (finalAttrs: previousAttrs: {
- version = "1.4.4";
- patchtag = "${finalAttrs.version}-1"; # Archlinux xinit package tagged release to fetch patch from
- # Override src since is hardcoded to 1.4.2
- src = prev.fetchurl {
- url = "mirror://xorg/individual/app/xinit-${finalAttrs.version}.tar.xz";
- sha256 = "sha256-QKR8ehZMf5gc43h7Szf35BH7QyMdzeVD1wCUB12s/vk=";
- };
- patches = [
- (prev.fetchpatch {
- url = "https://gitlab.archlinux.org/archlinux/packaging/packages/xorg-xinit/-/raw/${finalAttrs.patchtag}/06_move_serverauthfile_into_tmp.diff";
- sha256 = "1whzs5bw7ph12r3abs1g9fydibkr291jh56a0zp17d4x070jnkda";
- })
- ];
- }));
- };
- })
- ];
-
- # Install basic X utilities
- environment.systemPackages = with pkgs; [
- unclutter
- xcape
- xclip
- xdotool
- xorg.setxkbmap
- xorg.xinput
- xorg.xkill
- xorg.xrandr
- xorg.xset
- xwallpaper
- ];
-
- # Enable TearFree option by default
- # Not all video drivers support this option
- services.xserver.deviceSection = ''
- Option "TearFree" "true"
- '';
- };
-}