From 119954200eadd58ffb8a707928fb8e1d2a28e010 Mon Sep 17 00:00:00 2001
From: Antoine Martin <antoine@alarsyo.net>
Date: Sat, 22 Feb 2025 16:14:32 +0100
Subject: [PATCH] talos: fix Firefox inhibit behavior

See https://github.com/flatpak/xdg-desktop-portal-gtk/issues/465 for
details about the issue.

TL;DR: x-d-p-gtk doesn't report a failure to handle the idle inhibit to
Firefox, so Firefox doesn't fallback to the Wayland protocol.
---
 hosts/talos/default.nix | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hosts/talos/default.nix b/hosts/talos/default.nix
index 422cc56..a8e3cd9 100644
--- a/hosts/talos/default.nix
+++ b/hosts/talos/default.nix
@@ -173,6 +173,7 @@
   # home
   xdg.portal.config.sway = {
     "org.freedesktop.impl.portal.Settings" = "darkman";
+    "org.freedesktop.impl.portal.Inhibit" = "none";
   };
 
   # Copy the NixOS configuration file and link it from the resulting system