From 8a55b9013930f15320b761a977e3c19e1cfbf34f Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Fri, 18 Oct 2024 14:48:39 -0500 Subject: [PATCH] fix wayland clipboard --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 32f5130..6871f80 100644 --- a/flake.nix +++ b/flake.nix @@ -268,6 +268,11 @@ ''export XDG_STATE_HOME="$NVIM_FLAKE_BASE_DIR/nvim_ringofstorms_${version}/state"'' "--run" ''export XDG_CACHE_HOME="$NVIM_FLAKE_BASE_DIR/nvim_ringofstorms_${version}/cache"'' + # Fix wayland copy paste from system clipboard which uses XDG_RUNTIME_DIR so we need to symlink that into this + "--run" + ''[ ! -d "$XDG_RUNTIME_DIR" ] && mkdir -p "$XDG_RUNTIME_DIR"'' + "--run" + ''[ ! -S "$XDG_RUNTIME_DIR/wayland-0" ] && ln -s /run/user/$(id -u)/wayland-0 "$XDG_RUNTIME_DIR/wayland-0"'' ]; }); };