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 {
|
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
|
||||||
|
|
Loading…
Reference in a new issue