🔑 darkone.security.services
Hardening of systemd services (R62–R66). (wip)
Covers disabling unnecessary services (R62), reducing functionality via systemd security options (R63), privilege restriction (R64), isolation (R65), and hardening of containerization components (R66).
Options
Section titled “Options”- enable
boolEnable ANSSI hardening of systemd services (R62–R66). - rootServicesAllowed
listOf strsystemd services allowed to run as root without CapabilityBoundingSet (R64). - hardenedUnits
listOf strsystemd units to which the ANSSI hardening baseline is applied (R52 RuntimeDirectoryMode, R55 PrivateTmp, R63 full sandbox viadnfLib.mkHardenedServiceConfig). Empty by default: blanket sandboxing can break services that need write access or extra syscalls, so units are opt-in. List framework-owned units known to tolerate confinement; per-unitserviceConfigoverrides still win.
darkone.security.services = { enable = false; rootServicesAllowed = [ ]; hardenedUnits = [ ];};Source: modules/security/services.nix 🡕