configuration.nix/home/services/spotifyd.nix

29 lines
616 B
Nix

{
pkgs,
secrets,
...
}: {
services = {
spotifyd = {
enable = true;
package = pkgs.spotifyd.override {
withMpris = true;
};
settings = {
global = {
inherit (secrets.spotify) username;
inherit (secrets.spotify) password;
use_mpris = true;
device_name = "Skipperd";
device_type = "computer";
backend = "pulseaudio";
no_audio_cache = true;
dbus_type = "session";
volume_normalization = true;
autoplay = true;
bitrate = 320;
};
};
};
};
}