42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ lib, config, ... }:
|
|
{
|
|
config.systemd.services = lib.mkIf (config.specialisation != { }) {
|
|
bluetooth.serviceConfig = {
|
|
CapabilityBoundingSet = [
|
|
""
|
|
];
|
|
NoNewPrivileges = true;
|
|
RestrictNamespaces = "pid";
|
|
ProtectControlGroups = true;
|
|
ProtectKernelModules = true;
|
|
ProtectKernelTunables = true;
|
|
MemoryDenyWriteExecute = true;
|
|
RestrictSUIDSGID = true;
|
|
SystemCallArchitectures = "native";
|
|
SystemCallFilter = "@system-service";
|
|
LockPersonality = true;
|
|
RestrictRealtime = true;
|
|
ProtectProc = "invisible";
|
|
PrivateUsers = true;
|
|
};
|
|
|
|
blueman-mechanism.serviceConfig = {
|
|
CapabilityBoundingSet = [
|
|
""
|
|
];
|
|
NoNewPrivileges = true;
|
|
RestrictNamespaces = "pid";
|
|
ProtectControlGroups = true;
|
|
ProtectKernelModules = true;
|
|
ProtectKernelTunables = true;
|
|
MemoryDenyWriteExecute = true;
|
|
RestrictSUIDSGID = true;
|
|
SystemCallArchitectures = "native";
|
|
SystemCallFilter = "@system-service";
|
|
LockPersonality = true;
|
|
RestrictRealtime = true;
|
|
ProtectProc = "invisible";
|
|
PrivateUsers = true;
|
|
};
|
|
};
|
|
}
|