nixos/homepage-dashboard: set an explicit cache dir
This commit is contained in:
parent
41f0ed5c0e
commit
c4c45fb768
@ -222,6 +222,7 @@ in
|
|||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
HOMEPAGE_CONFIG_DIR = configDir;
|
HOMEPAGE_CONFIG_DIR = configDir;
|
||||||
|
HOMEPAGE_CACHE_DIR = "/var/cache/homepage-dashboard";
|
||||||
PORT = toString cfg.listenPort;
|
PORT = toString cfg.listenPort;
|
||||||
LOG_TARGETS = lib.mkIf managedConfig "stdout";
|
LOG_TARGETS = lib.mkIf managedConfig "stdout";
|
||||||
};
|
};
|
||||||
@ -231,6 +232,7 @@ in
|
|||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
|
EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
|
||||||
StateDirectory = lib.mkIf (!managedConfig) "homepage-dashboard";
|
StateDirectory = lib.mkIf (!managedConfig) "homepage-dashboard";
|
||||||
|
CacheDirectory = "homepage-dashboard";
|
||||||
ExecStart = lib.getExe cfg.package;
|
ExecStart = lib.getExe cfg.package;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user