Enable spotifyd service

Update ensure-pass section for spotify to allow spotifyd to use secret
service lookup
This commit is contained in:
Evie Litherland-Smith 2024-10-16 07:58:49 +01:00
parent 987cfbacae
commit a6023abd2c
2 changed files with 11 additions and 5 deletions

View file

@ -19,7 +19,14 @@
];
file.${config.gtk.gtk2.configLocation}.force = true; # Stop clashing with KDE
};
services.syncthing.enable = true;
services = {
syncthing.enable = true;
spotifyd = {
enable = true;
settings.global.username = "pixelifytica";
};
};
networking.firewall.allowedTCPPorts = [ 57621 ]; # Spotify Connect
gtk = {
enable = true;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";

View file

@ -29,10 +29,9 @@ secret-tool lookup url "$URL" user "$USER" >/dev/null || (
)
# Spotify
URL="spotify.com"
USER="pixelifytica"
secret-tool lookup url "$URL" user "$USER" >/dev/null || (
# See https://docs.spotifyd.rs/config/File.html for attribute details
secret-tool lookup application rust-keyring service spotifyd username pixelifytica >/dev/null || (
pass show media/spotify.com |
head -n1 |
secret-tool store --label="Spotify" url "$URL" user "$USER"
secret-tool store --label="Spotify" application rust-keyring service spotifyd username pixelifytica
)