services/yt-dlp: harden the service

This commit is contained in:
Gabriel Arazas 2022-04-17 00:18:03 +08:00
parent 10b3d01424
commit 560e296532

View File

@ -126,6 +126,14 @@ in {
} ${lib.escapeShellArgs value.urls}
'';
startAt = value.startAt;
serviceConfig = {
NoNewPrivileges = true;
PrivateTmp = true;
ProtectControlGroup = true;
ProtectClock = true;
ProtectKernelModule = true;
ProtectKernelLogs = true;
};
}) cfg.jobs;
};
}