flake/hosts/modules/wm/hyprland.nix

37 lines
742 B
Nix
Raw Permalink Normal View History

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