From 6dbeec423de85c05d5213507eb7c0cab5b3fb0fa Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 5 Aug 2023 18:03:52 +0530 Subject: [PATCH] inherit username/password from secrets --- home/services/spotifyd.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/home/services/spotifyd.nix b/home/services/spotifyd.nix index 43eeba1..a330e1b 100644 --- a/home/services/spotifyd.nix +++ b/home/services/spotifyd.nix @@ -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";