2023-11-02 21:57:08 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.ccchh.services.audio;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./librespot.nix
|
2024-04-23 19:12:16 +02:00
|
|
|
./mpd.nix
|
2023-11-02 21:57:08 +01:00
|
|
|
./pipewire.nix
|
|
|
|
./shairport-sync.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
ccchh.services.audio = {
|
|
|
|
enable = mkEnableOption (lib.mdDoc "audio");
|
|
|
|
|
|
|
|
name = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
example = "Audio Living Room";
|
|
|
|
default = config.networking.hostName;
|
|
|
|
defaultText = literalExpression "config.networking.HostName";
|
|
|
|
description = lib.mdDoc ''
|
|
|
|
The name to use for display in the various audio services. For example
|
|
|
|
the name of the displayed Spotify speaker or AirPlay audio device.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|