This repository has no description
546 B
24 lines
1{ config, lib, pkgs, ... }:
2let
3 cfg = config.lass.icecast;
4
5 format = pkgs.formats.json {};
6in
7{
8 options.lass.icecast = {
9 enable = lib.mkEnableOption "icecast";
10 configFile = lib.mkOption {
11 type = pkgs.stockholm.lib.types.absolute-pathname;
12 default = pkgs.writeText "icecast.xml" ''
13 <icecast>
14 </icecast>
15 '';
16 };
17 settings = lib.mkOption {
18 description = lib.mdDoc "icecast.xml as a nix attrset."
19 type = lib.types.submodule {
20 freeformType = format.type;
21 }
22 };
23 };
24}