inherit username/password from secrets
This commit is contained in:
parent
4dbcb5dde3
commit
6dbeec423d
1 changed files with 3 additions and 6 deletions
|
@ -1,18 +1,15 @@
|
|||
{pkgs, ...}: {
|
||||
{pkgs, secrets, ...}: {
|
||||
services = {
|
||||
spotifyd = {
|
||||
enable = true;
|
||||
package = pkgs.spotifyd.override {
|
||||
withKeyring = true;
|
||||
withMpris = true;
|
||||
};
|
||||
settings = {
|
||||
global = {
|
||||
use_keyring = true;
|
||||
inherit (secrets.spotify) username;
|
||||
inherit (secrets.spotify) password;
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue