From b873c47d3d62f6a6c1fa7251e08e3d76d9358179 Mon Sep 17 00:00:00 2001
From: Craige McWhirter <craige.mcwhirter@iohk.io>
Date: Mon, 29 Mar 2021 08:08:21 +1000
Subject: [PATCH] spotify: initial commit

---
 profiles/spotify.nix | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 profiles/spotify.nix

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
+  ];
+
+}