packages/amberol: factor out mpris2-player module, tighten dbus permissions
This commit is contained in:
parent
af2ffc6fa0
commit
40aae03414
2 changed files with 10 additions and 4 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
mkNixPak {
|
||||
config = { sloth, ... }: {
|
||||
imports = [ ../modules/gui-base.nix ];
|
||||
dbus.policies = {
|
||||
"org.mpris.MediaPlayer2.*" = "own";
|
||||
};
|
||||
imports = [
|
||||
../modules/gui-base.nix
|
||||
../modules/mpris2-player.nix
|
||||
];
|
||||
flatpak.appId = "io.bassi.Amberol";
|
||||
bubblewrap = {
|
||||
bind.rw = [
|
||||
|
|
6
packages/nixpak/modules/mpris2-player.nix
Normal file
6
packages/nixpak/modules/mpris2-player.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
dbus.policies = {
|
||||
"org.mpris.MediaPlayer2.${config.flatpak.appId}" = "own";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue