nixos: services: podgrab: add 'dataDir'
This commit is contained in:
parent
c18054cad7
commit
5df0574f41
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue