nixos-config/users/rouven/modules/spotify/default.nix

19 lines
499 B
Nix
Raw Normal View History

2023-02-26 22:50:07 +01:00
{ config, pkgs, ... }:
{
home.packages = [ pkgs.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
}