diff options
Diffstat (limited to 'nixes/startx')
-rw-r--r-- | nixes/startx/startx-xdg.patch | 4 | ||||
-rw-r--r-- | nixes/startx/startx.nix | 10 |
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 + ]; + }); +} |