summaryrefslogtreecommitdiff
path: root/users/seth/services/spotifyd.nix
blob: 6fe2b353d21e1db1b394fba5db5766cf4d71f30c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
        };
      };
    };
  };
}