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
|
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 = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||||
|
|
|
@ -29,10 +29,9 @@ secret-tool lookup url "$URL" user "$USER" >/dev/null || (
|
||||||
)
|
)
|
||||||
|
|
||||||
# Spotify
|
# Spotify
|
||||||
URL="spotify.com"
|
# See https://docs.spotifyd.rs/config/File.html for attribute details
|
||||||
USER="pixelifytica"
|
secret-tool lookup application rust-keyring service spotifyd username pixelifytica >/dev/null || (
|
||||||
secret-tool lookup url "$URL" user "$USER" >/dev/null || (
|
|
||||||
pass show media/spotify.com |
|
pass show media/spotify.com |
|
||||||
head -n1 |
|
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