Sway: remove XWayland

This commit is contained in:
Victor Mignot 2024-04-23 12:49:11 +02:00
parent c25ab8f4de
commit e5c3db56d4
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D
7 changed files with 46 additions and 27 deletions

View file

@ -1,4 +1,9 @@
{ config, extraInfo, pkgs, ... }:
{
config,
extraInfo,
pkgs,
...
}:
{
services.nginx.virtualHosts.${extraInfo.nextcloudURI} = {
enableACME = true;

View file

@ -31,11 +31,6 @@ with lib;
extraPackages = with pkgs; [
(mkIf (config.hwAccelerationGPU == "intel") intel-media-driver)
(mkIf (config.hwAccelerationGPU == "intel") intel-compute-runtime)
(mkIf (config.hwAccelerationGPU == "nvidia") vulkan-validation-layers)
(mkIf (config.hwAccelerationGPU == "nvidia") vulkan-headers)
(mkIf (config.hwAccelerationGPU == "nvidia") vulkan-caps-viewer)
(mkIf (config.hwAccelerationGPU == "nvidia") vulkan-extension-layer)
(mkIf (config.hwAccelerationGPU == "nvidia") vulkan-tools)
];
};

View file

@ -2,27 +2,41 @@
lib,
config,
pkgs,
nvidiaGPU,
...
}:
with lib;
let
desktopPackages = with pkgs; [
xwayland
grim
slurp
wl-clipboard
clipman
wf-recorder
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
qt5ct
libsForQt5.qtstyleplugin-kvantum
font-awesome
nordzy-cursor-theme
jetbrains-mono
xdg-utils
libnotify
gnome.adwaita-icon-theme
];
desktopPackages =
with pkgs;
[
grim
slurp
wl-clipboard
clipman
wf-recorder
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
qt5ct
libsForQt5.qtstyleplugin-kvantum
font-awesome
nordzy-cursor-theme
jetbrains-mono
xdg-utils
libnotify
gnome.adwaita-icon-theme
]
++ (
if nvidiaGPU then
[
vulkan-validation-layers
vulkan-headers
vulkan-caps-viewer
vulkan-extension-layer
vulkan-tools
]
else
[ ]
);
in
{
imports = [

View file

@ -27,7 +27,6 @@ in
config.wayland.windowManager.sway = mkIf config.desktop.enableSwayStack {
enable = true;
package = null;
systemd.enable = false;
checkConfig = false;
@ -233,6 +232,8 @@ in
default_border pixel
'';
xwayland = false;
extraSessionCommands = ''
export WLR_NO_HARDWARE_CURSORS=1
export XDG_CURRENT_DESKTOP=sway

View file

@ -31,7 +31,7 @@ with lib;
shellInit = ''
set -g theme_color_scheme nord
if [ -z $DISPLAY ] && [ "$(tty)" = /dev/tty1 ]
exec ${pkgs.sway}/bin/.sway-wrapped ${unsupportedGPUFlag}
exec sway ${unsupportedGPUFlag}
end
'';
};

View file

@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
with lib;
{
programs.helix.settings = mkIf config.programs.helix.enable { theme = "nord"; };

View file

@ -15,7 +15,6 @@ with lib;
'';
};
config.programs.neovim = mkIf config.desktop.enableNeovim {
enable = true;