From a4e83c1d7e81746af5a907f7443b25284d0b3f9d Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Fri, 16 Feb 2024 17:01:57 +0300 Subject: [PATCH] update flake to use CACHE_DIR --- flake.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 5a3e7c2..b9e5b2c 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; }; };