nixos-config/home/modules/spotify-cli.nix

21 lines
368 B
Nix
Raw Normal View History

2024-08-05 12:56:08 +02:00
{
config,
pkgs,
lib,
inputs,
...
}: {
services.spotifyd.enable = config.os == "linux";
2024-08-05 12:56:08 +02:00
services.spotifyd.settings.global = {
bitrate = 320;
username = "xqtc@tutanota.com";
password_cmd = "cat /etc/spotifyd_pw";
};
sops.secrets = lib.mkIf (config.os == "linux") {
2024-08-05 12:56:08 +02:00
"spotify/password" = {
path = "/etc/spotifyd_pw";
};
};
}