configuration.nix/home/services/media.nix

26 lines
643 B
Nix
Raw Normal View History

2023-04-04 10:06:31 +05:30
{ pkgs, ... }: {
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";
};
};
};
};
}