Add notifications combinator
This commit is contained in:
parent
c4fb625497
commit
977c3f2426
5 changed files with 118 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
14
lib/combinators/notifications.nix
Normal file
14
lib/combinators/notifications.nix
Normal 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" ]; };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue