Sandboxed jellyseerr

This commit is contained in:
rasmus-kirk
2025-03-18 20:06:17 +01:00
parent d73527a0ea
commit 32b4c3797b
2 changed files with 17 additions and 17 deletions
+1
View File
@@ -4,6 +4,7 @@
Added:
- Plex service
- Expose and sandboxing to Jellyseerr module
Updated:
- If `nixarr.enable` is not enabled other services will automatically now
+16 -17
View File
@@ -1,4 +1,3 @@
# TODO: Add expose options for this module
{
config,
pkgs,
@@ -68,22 +67,22 @@ in {
Group = cfg.group;
ExecStart = lib.getExe cfg.package;
Restart = "on-failure";
# TODO: These are from nixpkgs, add them back if we add expose options
# ProtectHome = true;
# ProtectSystem = "strict";
# PrivateTmp = true;
# PrivateDevices = true;
# ProtectHostname = true;
# ProtectClock = true;
# ProtectKernelTunables = true;
# ProtectKernelModules = true;
# ProtectKernelLogs = true;
# ProtectControlGroups = true;
# NoNewPrivileges = true;
# RestrictRealtime = true;
# RestrictSUIDSGID = true;
# RemoveIPC = true;
# PrivateMounts = true;
ProtectHome = true;
PrivateTmp = true;
PrivateDevices = true;
ProtectHostname = true;
ProtectClock = true;
ProtectKernelTunables = true;
ProtectKernelModules = true;
ProtectKernelLogs = true;
ProtectControlGroups = true;
NoNewPrivileges = true;
RestrictRealtime = true;
RestrictSUIDSGID = true;
RemoveIPC = true;
PrivateMounts = true;
ProtectSystem = "strict";
ReadWritePaths = [ cfg.configDir ];
};
};