configuration.nix/home/services/spotifyd.nix

22 lines
517 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";
};
};
};
};
}