nixos: services: podgrab: add 'dataDir'

This commit is contained in:
Bruno BELANYI 2024-03-21 20:30:25 +01:00
parent c18054cad7
commit 5df0574f41
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,15 @@ in
'';
};
dataDir = mkOption {
type = with types; nullOr str;
default = null;
example = "/mnt/podgrab";
description = ''
Path to the directory to store the podcasts. Use default if null
'';
};
port = mkOption {
type = types.port;
default = 8080;
@ -31,6 +40,7 @@ in
inherit (cfg) passwordFile port;
group = "media";
dataDirectory = lib.mkIf (cfg.dataDir != null) cfg.dataDir;
};
# Set-up media group