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

16 lines
419 B
Nix
Raw Normal View History

2023-02-26 22:50:07 +01:00
{ config, pkgs, ... }:
{
home.packages = [ pkgs.spotify-tui ];
sops.secrets."spotify" = { };
services.spotifyd = {
enable = true;
settings = {
global = {
username = config.accounts.email.accounts."gmail".address;
password_cmd = "${pkgs.coreutils}/bin/cat $XDG_RUNTIME_DIR/secrets/spotify";
};
};
};
2023-03-06 15:05:35 +01:00
systemd.user.services.spotifyd.Unit.After = [ "sops-nix.service" ];
2023-02-26 22:50:07 +01:00
}