nixos/peertube: support auto transcription

`ProcSubset = "pid"` was removed, because /proc/cpuinfo needs to be
accessed.
This commit is contained in:
June Stepp
2025-07-08 10:58:16 +02:00
committed by Kerstin
parent 2fcfe280b5
commit 6d35689a8d
+6 -1
View File
@@ -20,6 +20,8 @@ let
NPM_CONFIG_CACHE = "/var/cache/peertube/.npm";
NPM_CONFIG_PREFIX = cfg.package;
HOME = cfg.package;
# Used for auto video transcription
HF_HOME = "/var/cache/peertube/huggingface";
};
systemCallsList = [
@@ -36,7 +38,6 @@ let
cfgService = {
# Proc filesystem
ProcSubset = "pid";
ProtectProc = "invisible";
# Access write directories
UMask = "0027";
@@ -420,6 +421,10 @@ in
};
};
};
video_transcription = {
engine = lib.mkDefault "whisper-ctranslate2";
engine_path = lib.mkDefault (lib.getExe pkgs.whisper-ctranslate2);
};
}
(lib.mkIf cfg.redis.enableUnixSocket {
redis = {