Sway: remove XWayland
This commit is contained in:
parent
c25ab8f4de
commit
e5c3db56d4
|
@ -1,4 +1,9 @@
|
|||
{ config, extraInfo, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
extraInfo,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.nginx.virtualHosts.${extraInfo.nextcloudURI} = {
|
||||
enableACME = true;
|
||||
|
|
|
@ -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)
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
programs.helix.settings = mkIf config.programs.helix.enable { theme = "nord"; };
|
||||
|
|
|
@ -15,7 +15,6 @@ with lib;
|
|||
'';
|
||||
};
|
||||
|
||||
|
||||
config.programs.neovim = mkIf config.desktop.enableNeovim {
|
||||
enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue