qol(hyprland): added some recomeaned stuff from nixos wiki

This commit is contained in:
2026-01-25 12:18:43 +00:00
parent 05de5f2063
commit c08192ac34

View File

@@ -7,6 +7,7 @@
}:
let
cfg = config.modules.Hyprland;
pkgs-unstable = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
options.modules.Hyprland = {
@@ -16,6 +17,7 @@ in
programs.xwayland.enable = true;
programs.hyprland = {
enable = true;
withUWSM = true;
# set the flake package
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
# make sure to also set the portal package, so that they are in sync
@@ -31,5 +33,12 @@ in
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
};
hardware.graphics = {
package = pkgs-unstable.mesa;
# if you also want 32-bit support (e.g for Steam)
enable32Bit = true;
package32 = pkgs-unstable.pkgsi686Linux.mesa;
};
};
}