refactor: wayland module, move emacs path to emacs.nix, neovim to base
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
options.myConfig.wayland.enable = lib.mkEnableOption "Wayland desktop environment";
|
||||
|
||||
config = lib.mkIf config.myConfig.wayland.enable {
|
||||
systemd.user.sessionVariables = {
|
||||
TERMINAL = "kitty";
|
||||
EDITOR = "emacsclient -c -a nvim";
|
||||
VISUAL = "emacsclient -c -a nvim";
|
||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
GDK_BACKEND = "wayland";
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user