20 lines
540 B
Nix
20 lines
540 B
Nix
{ ... }:
|
|
{
|
|
sane.programs.spot = {
|
|
buildCost = 1;
|
|
|
|
sandbox.method = "bwrap";
|
|
sandbox.net = "clearnet";
|
|
sandbox.whitelistAudio = true;
|
|
sandbox.whitelistDbus = [ "user" ]; # mpris
|
|
sandbox.whitelistWayland = true;
|
|
|
|
secrets.".cache/spot/librespot/credentials/credentials.json" = ../../../secrets/common/spot_credentials.json.bin;
|
|
persist.byStore.plaintext = [
|
|
".cache/spot/img" # album art
|
|
".cache/spot/librespot/audio" # audio/track cache
|
|
".cache/spot/net" # album metadata
|
|
];
|
|
};
|
|
}
|