modules: Extend sway and emacs by common options
This commit is contained in:
@@ -8,6 +8,7 @@ in {
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ emacsPgtkGcc ];
|
||||
services.emacs.package = pkgs.emacsPgtkGcc;
|
||||
|
||||
home-manager.users."${config.ptw.system.singleUser}".home.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 = {
|
||||
|
||||
Reference in New Issue
Block a user