mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
19 lines
504 B
Nix
19 lines
504 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs;[ 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" ];
|
|
}
|