nixos/homepage-dashboard: set an explicit cache dir

This commit is contained in:
Jon Seager 2024-08-28 10:03:33 +01:00
parent 41f0ed5c0e
commit c4c45fb768
No known key found for this signature in database

View File

@ -222,6 +222,7 @@ in
environment = {
HOMEPAGE_CONFIG_DIR = configDir;
HOMEPAGE_CACHE_DIR = "/var/cache/homepage-dashboard";
PORT = toString cfg.listenPort;
LOG_TARGETS = lib.mkIf managedConfig "stdout";
};
@ -231,6 +232,7 @@ in
DynamicUser = true;
EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
StateDirectory = lib.mkIf (!managedConfig) "homepage-dashboard";
CacheDirectory = "homepage-dashboard";
ExecStart = lib.getExe cfg.package;
Restart = "on-failure";
};