1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-05-20 11:53:20 +02:00
parent a1b7eef990
commit 4cfbb1895e
No known key found for this signature in database

View file

@ -90,14 +90,15 @@ in
}; };
cache-dir = lib.mkOption { cache-dir = lib.mkOption {
default = if cfg.cacheDir != null then "/var/cache/${cfg.cacheDir}" else null; # default = if cfg.cacheDir != null then "/var/cache/${cfg.cacheDir}" else null;
default = lib.mkIf (cfg.cacheDir != null) "/var/cache/${cfg.cacheDir}";
defaultText = lib.literalExpression '' defaultText = lib.literalExpression ''
if config.services.filebrowser.cacheDir != null then "/var/cache/''${config.services.filebrowser.cacheDir}" else null 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.
''; '';
type = types.nullOr types.path; type = types.path;
readOnly = true; readOnly = true;
}; };
}; };