From 5020a3216e3f0dd1fa5aaa1dcca75938d4542afb Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Thu, 30 Oct 2025 10:27:55 -0400 Subject: [PATCH] mudlet to unstable --- home/crow/common/optional/gaming/default.nix | 43 +++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/home/crow/common/optional/gaming/default.nix b/home/crow/common/optional/gaming/default.nix index 5de6275..ed7d43c 100644 --- a/home/crow/common/optional/gaming/default.nix +++ b/home/crow/common/optional/gaming/default.nix @@ -5,26 +5,28 @@ config, lib, ... -}: let +}: +let monitor = lib.head (lib.filter (m: m.primary) config.monitors); - steam-session = let - gamescope = lib.concatStringsSep " " [ - (lib.getExe pkgs.gamescope) - "--output-width ${toString monitor.width}" - "--output-height ${toString monitor.height}" - "--framerate-limit ${toString monitor.refreshRate}" - "--prefer-output ${monitor.name}" - "--adaptive-sync" - "--expose-wayland" - "--steam" - "--hdr-enabled" - ]; - steam = lib.concatStringsSep " " [ - "steam" - #"steam://open/bigpicture" - ]; - in + steam-session = + let + gamescope = lib.concatStringsSep " " [ + (lib.getExe pkgs.gamescope) + "--output-width ${toString monitor.width}" + "--output-height ${toString monitor.height}" + "--framerate-limit ${toString monitor.refreshRate}" + "--prefer-output ${monitor.name}" + "--adaptive-sync" + "--expose-wayland" + "--steam" + "--hdr-enabled" + ]; + steam = lib.concatStringsSep " " [ + "steam" + #"steam://open/bigpicture" + ]; + in pkgs.writeTextDir "share/applications/steam-session.desktop" '' [Desktop Entry] Name=Steam Session @@ -32,11 +34,12 @@ Icon=steam Type=Application ''; -in { +in +{ home.packages = [ steam-session #pkgs.vintagestory - pkgs.mudlet + pkgs.unstable.mudlet pkgs.r2modman pkgs.prismlauncher ];