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 {
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 ''
if config.services.filebrowser.cacheDir != null then "/var/cache/''${config.services.filebrowser.cacheDir}" else null
'';
description = ''
The directory where FileBrowser stores its cache.
'';
type = types.nullOr types.path;
type = types.path;
readOnly = true;
};
};