From ba11ee8c7a130cebcf0b13640563ae748cef0e5f Mon Sep 17 00:00:00 2001 From: azahi Date: Sun, 2 Feb 2025 01:48:24 +0300 Subject: 2025-02-02 --- modules/games/default.nix | 6 ++---- modules/games/steam.nix | 14 +++++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'modules/games') diff --git a/modules/games/default.nix b/modules/games/default.nix index 4f474b4..b70b94b 100644 --- a/modules/games/default.nix +++ b/modules/games/default.nix @@ -14,12 +14,10 @@ in services = { jack.alsa.support32Bit = config.services.jack.alsa.enable; pipewire.alsa.support32Bit = config.services.pipewire.alsa.enable; + pulseaudio.support32Bit = config.services.pulseaudio.enable; }; - hardware = { - graphics.enable32Bit = true; - pulseaudio.support32Bit = config.hardware.pulseaudio.enable; - }; + hardware.graphics.enable32Bit = true; }) ]; } diff --git a/modules/games/steam.nix b/modules/games/steam.nix index d1da8ee..d8c6964 100644 --- a/modules/games/steam.nix +++ b/modules/games/steam.nix @@ -13,11 +13,15 @@ in config = mkIf cfg.enable { nixfiles.modules = { - common.nix.allowedUnfreePackages = [ - "steam" - "steam-run" - "steam-unwrapped" - ]; + common = { + nix.allowedUnfreePackages = [ + "steam" + "steam-run" + "steam-unwrapped" + ]; + + xdg.defaultApplications.steam = [ "x-scheme-handler/steam" ]; + }; games = { enable32BitSupport = true; -- cgit 1.4.1