mio-ops/profiles/spotify.nix
2021-03-29 08:08:21 +10:00

20 lines
438 B
Nix

# Spotify service configuration
{ config, pkgs, lib, ... }:
{
services.spotifyd = {
enable = true; # Enable the Spotify daemon.
config = "
username = ${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d ~/.spotify/userName.gpg
password_cmd = ${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d ~/.spotify/passwd.gpg
";
};
environment.systemPackages = with pkgs; [
spotify
];
}