diff --git a/profiles/spotify.nix b/profiles/spotify.nix new file mode 100644 index 0000000..e740300 --- /dev/null +++ b/profiles/spotify.nix @@ -0,0 +1,19 @@ +# 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 + ]; + +}