update flake to use CACHE_DIR
This commit is contained in:
parent
926102bd70
commit
a4e83c1d7e
|
@ -75,18 +75,15 @@
|
|||
environment = {
|
||||
PORT = toString cfg.port;
|
||||
API_KEY = cfg.apiKey;
|
||||
CACHE_DIR = "/var/lib/nlw-api";
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
ExecStart = "${getExe cfg.package}";
|
||||
DynamicUser = "yes";
|
||||
RuntimeDirectory = "nlw-api";
|
||||
RuntimeDirectoryMode = "0755";
|
||||
StateDirectory = "nlw-api";
|
||||
StateDirectoryMode = "0700";
|
||||
CacheDirectory = "nlw-api";
|
||||
CacheDirectoryMode = "0750";
|
||||
StateDirectoryMode = "0755";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue