modules: Extend sway and emacs by common options
This commit is contained in:
parent
2bfb389572
commit
52ce4eed01
@ -17,7 +17,6 @@
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
emacsPgtkGcc
|
||||
gajim-mainwindow
|
||||
virt-manager qemu scream
|
||||
replaysorcery # Custom package
|
||||
@ -136,12 +135,6 @@
|
||||
# sdma0 time out (whatever this means). Maybe bisect?
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
];
|
||||
};
|
||||
services = {
|
||||
ratbagd.enable = true;
|
||||
flatpak.enable = true;
|
||||
@ -160,17 +153,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
# TODO: Move into modules
|
||||
systemd.user.services = {
|
||||
scream = {
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user