modules: Extend sway and emacs by common options

This commit is contained in:
2021-11-04 19:51:49 +01:00
parent 2bfb389572
commit 52ce4eed01
3 changed files with 19 additions and 18 deletions

View File

@@ -38,6 +38,24 @@ in {
};
config = lib.mkIf cfg.enable {
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-wlr
];
};
environment.sessionVariables = {
# sway
#"_JAVA_AWT_NONREPARENTING" = 1;
# Wayland
"QT_QPA_PLATFORM" = "wayland-egl";
"ECORE_EVAS_ENGINE" = "wayland-egl";
"ELM_ENGINE" = "wayland-egl";
"SDL_VIDEODRIVER" = "wayland";
};
programs.sway.enable = true;
home-manager.users."${config.ptw.system.singleUser}" = {
wayland.windowManager.sway = {