{ inputs, pkgs, lib, system, ... }: let # hyprpkgs = inputs.hyprland.packages.${system}; hyprpkgs = inputs.hyprland.inputs.nixpkgs.legacyPackages.${system}; in { environment.defaultPackages = with pkgs; [ hyprsunset ]; xdg.portal = { enable = true; wlr.enable = true; }; programs = { hyprland = { enable = true; package = inputs.hyprland.packages.${system}.hyprland; portalPackage = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland; # withUWSM = true; # Universal Wayland Session Manager xwayland.enable = true; }; }; hardware.graphics = { package = lib.mkForce hyprpkgs.mesa; package32 = lib.mkForce hyprpkgs.pkgsi686Linux.mesa; }; }