Skip to content

Commit

Permalink
back to Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
fjolne committed Apr 3, 2024
1 parent b6066dc commit 4742493
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/nixos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,18 @@ with lib;
services.xserver.desktopManager.gnome.enable = true;
services.gnome.gnome-keyring.enable = true;

# force AMD video
hardware.nvidia.prime.offload.enable = false;
hardware.nvidia.powerManagement.enable = false;
hardware.nvidia.dynamicBoost.enable = mkForce false;
services.xserver.displayManager.gdm.wayland = false;
# enable Wayland
services.xserver.displayManager.gdm.wayland = true;
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # for Electron apps
specialisation = {
nvidia.configuration = {
imports = [ nixos-hardware.nixosModules.common-gpu-nvidia ]; # .../prime.nix
services.xserver.displayManager.gdm.wayland = mkForce true;
# services.xserver.displayManager.gdm.wayland = mkForce true;
virtualisation.docker.enableNvidia = true; # for torch+cuda
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # for Electron apps
};
};

Expand Down

0 comments on commit 4742493

Please sign in to comment.