From 4a3f06b73c435486f77754a9ac0602bc72821b51 Mon Sep 17 00:00:00 2001 From: mediocregopher Date: Sun, 17 Dec 2023 17:15:50 +0100 Subject: [PATCH] Add ability to include extra xorg conf from the config --- config/default.nix | 2 ++ x/default.nix | 3 +++ 2 files changed, 5 insertions(+) diff --git a/config/default.nix b/config/default.nix index 2e50b3e..b2ff1e5 100644 --- a/config/default.nix +++ b/config/default.nix @@ -26,4 +26,6 @@ }; binExtra = []; + + xorgConfExtra = ""; } diff --git a/x/default.nix b/x/default.nix index 1807368..b6d8f98 100644 --- a/x/default.nix +++ b/x/default.nix @@ -26,11 +26,14 @@ Section "Files" ModulePath "${innerEnv}/lib/xorg/modules" EndSection + +${config.xorgConfExtra} EOF for f in $(ls ${innerEnv}/share/X11/xorg.conf.d | sort); do cat ${innerEnv}/share/X11/xorg.conf.d/"$f" >> "$out" done + ''; startx = pkgs.writeShellScriptBin "startx" ''