summaryrefslogtreecommitdiff
path: root/nixes
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2024-09-29 22:54:38 -0500
committerTim Keller <tjk@tjkeller.xyz>2024-09-29 22:54:38 -0500
commitf9d4d2bbd82bd66bebff85420df6653a6966ee9a (patch)
treedee057520e7c6f32234066786e447b9d05ebd17b /nixes
downloadnixos-f9d4d2bbd82bd66bebff85420df6653a6966ee9a.tar.xz
nixos-f9d4d2bbd82bd66bebff85420df6653a6966ee9a.zip
initial commit
Diffstat (limited to 'nixes')
-rw-r--r--nixes/startx/startx-xdg.patch4
-rw-r--r--nixes/startx/startx.nix10
2 files changed, 14 insertions, 0 deletions
diff --git a/nixes/startx/startx-xdg.patch b/nixes/startx/startx-xdg.patch
new file mode 100644
index 0000000..5aa3fd9
--- /dev/null
+++ b/nixes/startx/startx-xdg.patch
@@ -0,0 +1,4 @@
+175c175
+< xserverauthfile=$HOME/.serverauth.$$
+---
+> xserverauthfile="${XAUTHORITY:-$HOME/.Xauthority}"
diff --git a/nixes/startx/startx.nix b/nixes/startx/startx.nix
new file mode 100644
index 0000000..591f426
--- /dev/null
+++ b/nixes/startx/startx.nix
@@ -0,0 +1,10 @@
+#{ pkgs ? import <nixpkgs> { overlays = [ (import /path/to/my-overlay.nix) ]; } }:
+
+final: prev: {
+ xorg.xinit = prev.xorg.xinit.overrideAttrs (old: {
+ # Apply the patch
+ patches = old.patches or [] ++ [
+ ./startx-xdg.patch
+ ];
+ });
+}