Files
PinePods-nix/pinepods-module.nix
2026-03-07 09:15:30 -05:00

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 ];
};
}