From aca7b273b7db8be0c00ffed1dd6acbd4140ddc00 Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Sat, 25 Apr 2026 02:35:47 +0100 Subject: [PATCH] merlon: launch Steam with -cef-disable-gpu, fix niri NixOS detection --- hosts/merlon/configuration.nix | 11 +++++++++++ modules/home/niri/default.nix | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/hosts/merlon/configuration.nix b/hosts/merlon/configuration.nix index a197c6c..7641824 100644 --- a/hosts/merlon/configuration.nix +++ b/hosts/merlon/configuration.nix @@ -61,6 +61,17 @@ in clientId = "1487976264265498655"; }; home.packages = with pkgs; [ quickemu ]; + + # Steam's CEF UI crashes on NVIDIA Wayland without -cef-disable-gpu + xdg.desktopEntries.steam = { + name = "Steam"; + exec = "steam -cef-disable-gpu %U"; + icon = "steam"; + terminal = false; + categories = [ "Network" "FileTransfer" "Game" ]; + mimeType = [ "x-scheme-handler/steam" "x-scheme-handler/steamlink" ]; + }; + programs.ssh.enable = true; programs.ssh.matchBlocks.merlon-windows = { hostname = "localhost"; diff --git a/modules/home/niri/default.nix b/modules/home/niri/default.nix index 5332ded..9eb0d2c 100644 --- a/modules/home/niri/default.nix +++ b/modules/home/niri/default.nix @@ -1,12 +1,13 @@ { config, + osConfig ? null, lib, pkgs, inputs, ... }: let - isNixOS = "system" ? config; + isNixOS = osConfig != null; in { imports = [ -- 2.51.2