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