summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormediocregopher <mediocregopher@gmail.com>2023-12-17 17:15:50 +0100
committermediocregopher <mediocregopher@gmail.com>2023-12-17 18:04:32 +0100
commit4a3f06b73c435486f77754a9ac0602bc72821b51 (patch)
tree864589279c12be33bf5bc8a793e237092769fc9d
parent6ecd5ca8ec91669c70b3e3f84ad087f829175f00 (diff)
Add ability to include extra xorg conf from the config
-rw-r--r--config/default.nix2
-rw-r--r--x/default.nix3
2 files changed, 5 insertions, 0 deletions
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" ''