forked from CCCHH/nix-infra
jopejoe1
4fc8e31df0
The current version in nixpkgs is newer than the one we are currently locking, the nqptp fix was also already in nixpkgs. Co-authored-by: c6ristian <c6ristian@christian.moe>
36 lines
715 B
Nix
36 lines
715 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.ccchh.services.audio;
|
|
|
|
in
|
|
|
|
{
|
|
imports = [
|
|
./librespot.nix
|
|
./mpd.nix
|
|
./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.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|