summaryrefslogtreecommitdiff
path: root/users/seth/services/spotifyd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/seth/services/spotifyd.nix')
-rw-r--r--users/seth/services/spotifyd.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/users/seth/services/spotifyd.nix b/users/seth/services/spotifyd.nix
new file mode 100644
index 0000000..6fe2b35
--- /dev/null
+++ b/users/seth/services/spotifyd.nix
@@ -0,0 +1,28 @@
+{
+ config,
+ lib,
+ ...
+}:
+let
+ cfg = config.seth.services.spotifyd;
+in
+{
+ options.seth.services.spotifyd = {
+ enable = lib.mkEnableOption "spotifyd";
+ };
+
+ config = lib.mkIf cfg.enable {
+ services.spotifyd = {
+ enable = true;
+
+ settings = {
+ # Implicitly use zeroconf
+ global = {
+ autoplay = true;
+ backend = "pulseaudio";
+ bitrate = 320;
+ };
+ };
+ };
+ };
+}