{ config, ... }: let secrets = config.sops.secrets; in { services.spotifyd = { enable = true; settings.global = { username_cmd = "cat ${secrets."spotify/username".path}"; password_cmd = "cat ${secrets."spotify/password".path}"; device_name = "nixos_${config.networking.hostName}"; device_type = "computer"; }; }; }