nixos/peertube: fix start service

This commit is contained in:
Izorkin 2022-07-30 19:24:12 +03:00
parent 4344950312
commit 0b98d77ff5
No known key found for this signature in database
GPG key ID: 1436C1B3F3679F09

View file

@ -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