configuration.nix/home/services/spotifyd.nix

29 lines
612 B
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ pkgs
, secrets
, ...
2023-08-05 18:12:52 +05:30
}: {
2023-04-07 14:07:44 +05:30
services = {
spotifyd = {
enable = true;
package = pkgs.spotifyd.override {
withMpris = true;
};
settings = {
global = {
2023-08-05 18:03:52 +05:30
inherit (secrets.spotify) username;
inherit (secrets.spotify) password;
2023-04-07 14:07:44 +05:30
use_mpris = true;
device_name = "Skipperd";
device_type = "computer";
backend = "pulseaudio";
no_audio_cache = true;
dbus_type = "session";
2023-08-05 18:12:52 +05:30
volume_normalization = true;
autoplay = true;
bitrate = 320;
2023-04-07 14:07:44 +05:30
};
2023-04-07 14:02:15 +05:30
};
};
};
}