config/packages/nixpak/amberol/default.nix

23 lines
548 B
Nix
Raw Normal View History

{ mkNixPak, callPackage }:
mkNixPak {
2022-12-05 18:00:03 +02:00
config = { sloth, ... }: {
imports = [ ../modules/gui-base.nix ];
dbus.policies = {
"org.mpris.MediaPlayer2.*" = "own";
};
flatpak.appId = "io.bassi.Amberol";
bubblewrap = {
bind.rw = [
[
(sloth.mkdir (sloth.concat' sloth.appCacheDir "/amberol"))
(sloth.concat' sloth.xdgCacheHome "/amberol")
]
];
2022-07-07 22:53:22 +03:00
bind.ro = [
2022-12-05 18:00:03 +02:00
(sloth.concat' sloth.homeDir "/Music")
2022-07-07 22:53:22 +03:00
];
};
app.package = callPackage ./amberol.nix {};
};
}