stuff
This commit is contained in:
parent
4ccf968abd
commit
a1b7eef990
2 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
|||
in{
|
||||
services.filebrowser = {
|
||||
enable = true;
|
||||
cacheDir = null;
|
||||
settings = {
|
||||
address = "localhost";
|
||||
port = 8090;
|
||||
|
|
|
@ -90,9 +90,9 @@ in
|
|||
};
|
||||
|
||||
cache-dir = lib.mkOption {
|
||||
default = "/var/cache/${cfg.cacheDir}";
|
||||
default = if cfg.cacheDir != null then "/var/cache/${cfg.cacheDir}" else null;
|
||||
defaultText = lib.literalExpression ''
|
||||
"/var/cache/''${config.services.filebrowser.cacheDir}"
|
||||
if config.services.filebrowser.cacheDir != null then "/var/cache/''${config.services.filebrowser.cacheDir}" else null
|
||||
'';
|
||||
description = ''
|
||||
The directory where FileBrowser stores its cache.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue