1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-05-20 11:47:25 +02:00
parent 4ccf968abd
commit a1b7eef990
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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.