nix-files/hosts/common/programs/spot.nix

18 lines
520 B
Nix

{ ... }:
{
sane.programs.spot = {
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
];
};
}