summaryrefslogtreecommitdiff
path: root/modules/root/x11.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-08-21 12:27:51 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-08-21 12:27:51 -0500
commit86fb7036cb4279abfc4ffc2bfa6b3a432c8700b5 (patch)
treebcde8a15f5cec938d3f4653863b0f6309bc65626 /modules/root/x11.nix
parent078e8ea33d29af21bad55313d75d716db8d5a617 (diff)
downloadnixos-86fb7036cb4279abfc4ffc2bfa6b3a432c8700b5.tar.xz
nixos-86fb7036cb4279abfc4ffc2bfa6b3a432c8700b5.zip
refactor project to prioritize correctness. place custom nixos options into existing 'modules' and prefix them with '_'. use _archetypes module for software collections, system profiles, etc. personal configs moved to _archetypes.tjkeller. probably changed or fixed or broke a few other things in the process
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"
- '';
- };
-}