feat(gnome): activate wayland
This activates wayland support but keep gnome-xorg as the default session since some applications do not run with this setup yet.
This commit is contained in:
parent
14a8e725a3
commit
7a0f98d20e
|
@ -33,12 +33,18 @@ in {
|
|||
];
|
||||
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.displayManager.gdm.wayland = false;
|
||||
services.xserver.displayManager.gdm.wayland = true;
|
||||
services.xserver.displayManager.gdm.nvidiaWayland = true;
|
||||
services.xserver.displayManager.defaultSession = "gnome-xorg";
|
||||
services.xserver.desktopManager.gnome.enable = true;
|
||||
services.xserver.desktopManager.gnome.extraGSettingsOverrides = ''
|
||||
[org/gnome/desktop/input-sources]
|
||||
sources=[('xkb', 'gb'), ('xkb', 'mozc-jp')]
|
||||
|
||||
[org/gnome/mutter]
|
||||
experimental-features=['kms-modifiers']
|
||||
'';
|
||||
programs.xwayland.enable = true;
|
||||
|
||||
# exclude some default applications
|
||||
environment.gnome.excludePackages = with pkgs; [
|
||||
|
|
|
@ -7,5 +7,10 @@
|
|||
hardware.opengl = {
|
||||
driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
|
||||
extraPackages32 = with pkgs.pkgsi686Linux; [
|
||||
vaapiIntel
|
||||
libvdpau-va-gl
|
||||
vaapiVdpau
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,12 +3,16 @@
|
|||
{
|
||||
# Graphics drivers
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware.nvidia.modesetting.enable = true;
|
||||
services.xserver.screenSection = ''
|
||||
Option "metamodes" "1920x1080_120 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
|
||||
Option "metamodes" "1920x1080_120 +0+0 {AllowGSYNC=On, AllowGSYNCCompatible=On, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
|
||||
'';
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau ];
|
||||
extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl vaapiVdpau ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue