feat: make tmux inherit wayland env vars so we can use wl-copy

This commit is contained in:
Mohammad Rafiq 2025-03-11 21:07:50 +08:00
parent 15ed06def1
commit fcd62641b1
2 changed files with 5 additions and 1 deletions

View file

@ -1,13 +1,13 @@
{ inputs, ... }: {
imports = [
inputs.nixvim.homeManagerModules.nixvim
./nixvim/conform-nvim.nix # formatter
./nixvim/lualine.nix # custom statusline
./nixvim/noice.nix # custom CMDLINE
./nixvim/nvim-tree.nix # filetree
./nixvim/treesitter-context.nix # context line
./nixvim/treesitter.nix # syntax highlighting
./nixvim/which-key.nix # show keybind hints
./nixvim/conform-nvim.nix # formatter
];
programs.nixvim = {
enable = true;

View file

@ -23,6 +23,10 @@
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",tmux-256color:RGB"
set -as terminal-features ",tmux-256color:RGB"
# inherit environment variables from outside so that we can use wl-copy etc
setenv -g WAYLAND_DISPLAY "$WAYLAND_DISPLAY"
setenv -g XDG_RUNTIME_DIR "$XDG_RUNTIME_DIR"
'';
};
}