Add notifications combinator

This commit is contained in:
Alex David 2025-10-04 11:28:20 -07:00
commit 977c3f2426
5 changed files with 118 additions and 15 deletions

View file

@ -39,6 +39,7 @@ let
network = ./combinators/network.nix;
no-new-session = ./combinators/no-new-session.nix;
noescape = ./combinators/noescape.nix;
notifications = ./combinators/notifications.nix;
open-urls-in-browser = ./combinators/open-urls-in-browser.nix;
persist-home = ./combinators/persist-home.nix;
pipewire = ./combinators/pipewire.nix;

View file

@ -0,0 +1,14 @@
{ combinators, ... }:
let
inherit (combinators) dbus;
in
{
sig = "Permission";
doc = ''
This adds the [dbus combinator](#dbus) with talk permission to
`org.freedesktop.Notifications` which allows the jailed software to send
[desktop
notifications](https://specifications.freedesktop.org/notification-spec/1.3/).
'';
impl = dbus { talk = [ "org.freedesktop.Notifications" ]; };
}