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
This commit is contained in:
Christian Albrecht 2017-08-01 21:45:01 +02:00 committed by Joachim F
parent 7be40dd899
commit 93965870a8

View File

@ -13,6 +13,7 @@ with lib;
unitConfig = {
ConditionVirtualization = "!container";
ConditionSecurity = [ "audit" ];
DefaultDependencies = false;
};
path = [ pkgs.audit ];