24 lines
550 B
Nix
24 lines
550 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.services.pinepods;
|
|
pinepods-pkg = (import "${toString ./.}/default.nix" {
|
|
serverUrl = cfg.server;
|
|
}).pinepods;
|
|
in
|
|
{
|
|
options.services.pinepods = {
|
|
enable = lib.mkEnableOption "PinePods podcast manager";
|
|
|
|
server = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "";
|
|
example = "https://pinepods.example.com";
|
|
description = "The URL of your PinePods server.";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ pinepods-pkg ];
|
|
};
|
|
} |