nixos-config/users/rouven/modules/spotify/default.nix
2023-12-29 19:47:57 +01:00

19 lines
512 B
Nix

{ config, pkgs, ... }:
{
home.packages = with pkgs;[ spotify spotify-tui ];
age.secrets.spotify = {
file = ../../../../secrets/rouven/spotify.age;
};
services.spotifyd = {
enable = true;
settings = {
global = {
username = config.accounts.email.accounts."gmail".address;
password_cmd = "${pkgs.coreutils}/bin/cat ${config.age.secrets.spotify.path}";
};
backend = "pulseaudio";
};
};
systemd.user.services.spotifyd.Unit.After = [ "agenix.service" ];
}