update flake to use CACHE_DIR

This commit is contained in:
Jill 2024-02-16 17:01:57 +03:00
parent 926102bd70
commit a4e83c1d7e
Signed by: oat
GPG Key ID: 33489AA58A955108
1 changed files with 2 additions and 5 deletions

View File

@ -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";
};
};