nixos: services: podgrab: add 'dataDir'

This commit is contained in:
Bruno BELANYI 2024-03-21 20:30:25 +01:00
parent c18054cad7
commit 5df0574f41

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 { port = mkOption {
type = types.port; type = types.port;
default = 8080; default = 8080;
@ -31,6 +40,7 @@ in
inherit (cfg) passwordFile port; inherit (cfg) passwordFile port;
group = "media"; group = "media";
dataDirectory = lib.mkIf (cfg.dataDir != null) cfg.dataDir;
}; };
# Set-up media group # Set-up media group