configuration.nix/home/services/spotifyd.nix

26 lines
643 B
Nix
Raw Normal View History

2023-04-07 14:02:15 +05:30
{ pkgs, ... }: {
2023-04-07 14:07:44 +05:30
services = {
spotifyd = {
enable = true;
package = pkgs.spotifyd.override {
withKeyring = true;
withMpris = true;
};
settings = {
global = {
use_keyring = true;
use_mpris = true;
username_cmd = ''
${pkgs.libsecret}/bin/secret-tool search --all service spotifyd 2>&1 | grep 'username' | awk -F'= ' '{print $2}'
'';
device_name = "Skipperd";
device_type = "computer";
backend = "pulseaudio";
no_audio_cache = true;
dbus_type = "session";
};
2023-04-07 14:02:15 +05:30
};
};
};
}