added module options
This commit is contained in:
24
pinepods-module.nix
Normal file
24
pinepods-module.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user