nixos/auditd: break ordering cycle (#27577)

auditd creates an ordering cycle by adding wantedBy = [ "basic.target" ],
because of this the job job systemd-update-utmp.service/start is deleted.

Adding unitConfig.DefaultDependencies = false; to the auditd service unbreaks the cycle.

See also #11864

authored by

Christian Albrecht and committed by
Joachim F
93965870 7be40dd8

+1
+1
nixos/modules/security/auditd.nix
··· 13 13 unitConfig = { 14 14 ConditionVirtualization = "!container"; 15 15 ConditionSecurity = [ "audit" ]; 16 + DefaultDependencies = false; 16 17 }; 17 18 18 19 path = [ pkgs.audit ];