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