fix(hyprland): support steam

This commit is contained in:
Michael Thomas 2024-06-03 11:48:35 -04:00
parent 66b68354e0
commit c6cc3d79b8
3 changed files with 20 additions and 7 deletions

View File

@ -1,6 +1,7 @@
{ {pkgs, ...}: {
programs.steam = { programs.steam = {
enable = true; enable = true;
package = pkgs.unstable.steam;
gamescopeSession.enable = true; gamescopeSession.enable = true;
}; };
} }

View File

@ -1,12 +1,19 @@
{pkgs, ...}: { {
pkgs,
inputs,
...
}: let
pkgs-hyprland = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
package = pkgs.unstable.hyprland; package = inputs.hyprland.packages.${pkgs.system}.hyprland;
}; };
hardware.opengl = { hardware.opengl = {
package = pkgs.unstable.mesa.drivers; package = pkgs-hyprland.mesa.drivers;
package32 = pkgs.unstable.pkgsi686Linux.mesa.drivers; driSupport32Bit = true;
package32 = pkgs-hyprland.pkgsi686Linux.mesa.drivers;
}; };
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;

View File

@ -1,6 +1,11 @@
{pkgs, ...}: { {
pkgs,
inputs,
...
}: {
imports = [ imports = [
./waybar ./waybar
inputs.hyprland.homeManagerModules.default
./wofi.nix ./wofi.nix
]; ];
@ -11,7 +16,7 @@
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = pkgs.unstable.hyprland; package = inputs.hyprland.packages.${pkgs.system}.hyprland;
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
general = { general = {