nixos/modules/spotify/default.nix
Jake Hillion 65172ef68f
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
spotify: add spotify-tui
2023-01-22 21:22:24 +00:00

26 lines
595 B
Nix

{ config, pkgs, lib, ... }:
{
config.age.secrets."spotify/11132032266" = {
file = ../../secrets/spotify/11132032266.age;
owner = "jake";
};
config.hardware.pulseaudio.enable = true;
config.users.users.jake.extraGroups = [ "audio" ];
config.users.users.jake.packages = with pkgs; [ spotify-tui ];
config.home-manager.users.jake.services.spotifyd = {
enable = true;
settings = {
global = {
username = "11132032266";
password_cmd = "cat ${config.age.secrets."spotify/11132032266".path}";
backend = "pulseaudio";
};
};
};
}