fix: pyload
This commit is contained in:
@@ -178,6 +178,7 @@ in
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
unrar # Required for RAR archive extraction
|
||||
p7zip # Required for 7z and other archive formats
|
||||
filebot # Automated media file organization
|
||||
];
|
||||
|
||||
@@ -234,9 +235,16 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# Disable SSL certificate verification
|
||||
# Configure pyload service
|
||||
systemd.services.pyload = {
|
||||
# Add extraction tools to service PATH
|
||||
path = with pkgs; [
|
||||
unrar # For RAR extraction
|
||||
p7zip # For 7z extraction
|
||||
];
|
||||
|
||||
environment = {
|
||||
# Disable SSL certificate verification
|
||||
PYLOAD__GENERAL__SSL_VERIFY = "0";
|
||||
|
||||
# Enable ExtractArchive plugin
|
||||
@@ -248,7 +256,7 @@ in
|
||||
PYLOAD__EXTRACTARCHIVE__FULLPATH = "1";
|
||||
};
|
||||
|
||||
# Bind-mount DNS configuration files and system tools into the chroot
|
||||
# Bind-mount DNS configuration files into the chroot
|
||||
serviceConfig = {
|
||||
BindReadOnlyPaths = [
|
||||
"/etc/resolv.conf"
|
||||
@@ -256,8 +264,6 @@ in
|
||||
"/etc/hosts"
|
||||
"/etc/ssl"
|
||||
"/etc/static/ssl"
|
||||
# Make all system packages (including unrar and filebot) accessible
|
||||
"/run/current-system/sw/bin"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user