diff options
author | Izorkin <izorkin@elven.pw> | 2022-07-30 19:24:12 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2022-08-09 18:58:02 +0300 |
commit | 0b98d77ff50b49d1fe073d17dcf18aa3895ee9fd (patch) | |
tree | 141077856153e9fe4abc605474ddd249b6d330f0 /nixos | |
parent | 4344950312ae0b0775efdd112412b787a1c73bb2 (diff) |
nixos/peertube: fix start service
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-apps/peertube.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/peertube.nix b/nixos/modules/services/web-apps/peertube.nix index 2fb05209c5c8e..c5a80e2d7d9d7 100644 --- a/nixos/modules/services/web-apps/peertube.nix +++ b/nixos/modules/services/web-apps/peertube.nix @@ -11,6 +11,7 @@ let NODE_CONFIG_DIR = "/var/lib/peertube/config"; NODE_ENV = "production"; NODE_EXTRA_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"; + NPM_CONFIG_CACHE = "/var/cache/peertube/.npm"; NPM_CONFIG_PREFIX = cfg.package; HOME = cfg.package; }; @@ -425,6 +426,9 @@ in { # State directory and mode StateDirectory = "peertube"; StateDirectoryMode = "0750"; + # Cache directory and mode + CacheDirectory = "peertube"; + CacheDirectoryMode = "0750"; # Access write directories ReadWritePaths = cfg.dataDirs; # Environment |