Enable spotifyd service
Update ensure-pass section for spotify to allow spotifyd to use secret service lookup
This commit is contained in:
parent
987cfbacae
commit
a6023abd2c
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue