2023-02-26 22:50:07 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2023-12-29 19:47:57 +01:00
|
|
|
home.packages = with pkgs;[ spotify spotify-tui ];
|
2023-11-16 15:53:15 +01:00
|
|
|
age.secrets.spotify = {
|
|
|
|
file = ../../../../secrets/rouven/spotify.age;
|
|
|
|
};
|
2023-02-26 22:50:07 +01:00
|
|
|
services.spotifyd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
global = {
|
|
|
|
username = config.accounts.email.accounts."gmail".address;
|
2023-11-16 15:53:15 +01:00
|
|
|
password_cmd = "${pkgs.coreutils}/bin/cat ${config.age.secrets.spotify.path}";
|
2023-02-26 22:50:07 +01:00
|
|
|
};
|
2023-11-24 09:57:15 +01:00
|
|
|
backend = "pulseaudio";
|
2023-02-26 22:50:07 +01:00
|
|
|
};
|
|
|
|
};
|
2023-11-16 15:53:15 +01:00
|
|
|
systemd.user.services.spotifyd.Unit.After = [ "agenix.service" ];
|
2023-02-26 22:50:07 +01:00
|
|
|
}
|