From bf7f90e7a7ff5b6dfab5644250ce862f22d680ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 22 Apr 2022 15:01:08 +0100 Subject: [PATCH] set session variables --- config/home-manager/base.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/config/home-manager/base.nix b/config/home-manager/base.nix index 2b9e1dd5..8ad28a3a 100644 --- a/config/home-manager/base.nix +++ b/config/home-manager/base.nix @@ -8,6 +8,7 @@ desktop: { pkgs, ... }: { ]; programs = { zsh = { + enable = true; oh-my-zsh = { enable = true; }; @@ -25,15 +26,17 @@ desktop: { pkgs, ... }: { fi ${pkgs.tmux}/bin/tmux attach-session -t "$SESSION_NAME" || ${pkgs.tmux}/bin/tmux new-session -s "$SESSION_NAME" fi - export SDL_VIDEODRIVER=wayland - export QT_QPA_PLATFORM=wayland - export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" - export _JAVA_AWT_WM_NONREPARENTING=1 - export MOZ_ENABLE_WAYLAND=1 - export GTK_IM_MODULE=ibus - export QT_IM_MODULE=ibus - export XMODIFIERS=@im=ibus ''; + sessionVariables = { + SDL_VIDEODRIVER = "wayland"; + QT_QPA_PLATFORM = "wayland"; + QT_WAYLAND_DISABLE_WINDOWDECORATION = 1; + _JAVA_AWT_WM_NONREPARENTING = 1; + MOZ_ENABLE_WAYLAND = 1; + GTK_IM_MODULE = "ibus"; + QT_IM_MODULE = "ibus"; + XMODIFIERS = "@im=ibus"; + }; plugins = [ { name = "zsh-nix-shell";