{ ... }: { config.dendritic.features.security-systemd-auditd = { nixosModules = [ ( { ... }: { systemd.services.auditd.serviceConfig = { NoNewPrivileges = true; ProtectSystem = "full"; ProtectHome = true; ProtectHostname = true; ProtectKernelTunables = true; ProtectKernelModules = true; ProtectControlGroups = true; ProtectProc = "invisible"; ProtectClock = true; PrivateTmp = true; PrivateNetwork = true; PrivateMounts = true; PrivateDevices = true; RestrictNamespaces = true; RestrictRealtime = true; RestrictSUIDSGID = true; RestrictAddressFamilies = [ "~AF_INET6" "~AF_INET" "~AF_PACKET" ]; MemoryDenyWriteExecute = true; LockPersonality = true; SystemCallFilter = [ "~@clock" "~@module" "~@mount" "~@swap" "~@obsolete" "~@cpu-emulation" ]; SystemCallArchitectures = "native"; CapabilityBoundingSet = [ "~CAP_CHOWN" "~CAP_FSETID" "~CAP_SETFCAP" ]; }; } ) ]; }; }