Sandboxed jellyseerr
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
Added:
|
Added:
|
||||||
- Plex service
|
- Plex service
|
||||||
|
- Expose and sandboxing to Jellyseerr module
|
||||||
|
|
||||||
Updated:
|
Updated:
|
||||||
- If `nixarr.enable` is not enabled other services will automatically now
|
- If `nixarr.enable` is not enabled other services will automatically now
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# TODO: Add expose options for this module
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
@@ -68,22 +67,22 @@ in {
|
|||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
ExecStart = lib.getExe cfg.package;
|
ExecStart = lib.getExe cfg.package;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
# TODO: These are from nixpkgs, add them back if we add expose options
|
ProtectHome = true;
|
||||||
# ProtectHome = true;
|
PrivateTmp = true;
|
||||||
# ProtectSystem = "strict";
|
PrivateDevices = true;
|
||||||
# PrivateTmp = true;
|
ProtectHostname = true;
|
||||||
# PrivateDevices = true;
|
ProtectClock = true;
|
||||||
# ProtectHostname = true;
|
ProtectKernelTunables = true;
|
||||||
# ProtectClock = true;
|
ProtectKernelModules = true;
|
||||||
# ProtectKernelTunables = true;
|
ProtectKernelLogs = true;
|
||||||
# ProtectKernelModules = true;
|
ProtectControlGroups = true;
|
||||||
# ProtectKernelLogs = true;
|
NoNewPrivileges = true;
|
||||||
# ProtectControlGroups = true;
|
RestrictRealtime = true;
|
||||||
# NoNewPrivileges = true;
|
RestrictSUIDSGID = true;
|
||||||
# RestrictRealtime = true;
|
RemoveIPC = true;
|
||||||
# RestrictSUIDSGID = true;
|
PrivateMounts = true;
|
||||||
# RemoveIPC = true;
|
ProtectSystem = "strict";
|
||||||
# PrivateMounts = true;
|
ReadWritePaths = [ cfg.configDir ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user