mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
nixos/peertube: fix start service
This commit is contained in:
parent
4344950312
commit
0b98d77ff5
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@ let
|
||||||
NODE_CONFIG_DIR = "/var/lib/peertube/config";
|
NODE_CONFIG_DIR = "/var/lib/peertube/config";
|
||||||
NODE_ENV = "production";
|
NODE_ENV = "production";
|
||||||
NODE_EXTRA_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt";
|
NODE_EXTRA_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt";
|
||||||
|
NPM_CONFIG_CACHE = "/var/cache/peertube/.npm";
|
||||||
NPM_CONFIG_PREFIX = cfg.package;
|
NPM_CONFIG_PREFIX = cfg.package;
|
||||||
HOME = cfg.package;
|
HOME = cfg.package;
|
||||||
};
|
};
|
||||||
|
@ -425,6 +426,9 @@ in {
|
||||||
# State directory and mode
|
# State directory and mode
|
||||||
StateDirectory = "peertube";
|
StateDirectory = "peertube";
|
||||||
StateDirectoryMode = "0750";
|
StateDirectoryMode = "0750";
|
||||||
|
# Cache directory and mode
|
||||||
|
CacheDirectory = "peertube";
|
||||||
|
CacheDirectoryMode = "0750";
|
||||||
# Access write directories
|
# Access write directories
|
||||||
ReadWritePaths = cfg.dataDirs;
|
ReadWritePaths = cfg.dataDirs;
|
||||||
# Environment
|
# Environment
|
||||||
|
|
Loading…
Reference in a new issue