We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents adb5147 + f94eec2 commit ffd468fCopy full SHA for ffd468f
nixos/modules/security/pam.nix
@@ -2312,8 +2312,7 @@ in
2312
environment.etc = lib.mapAttrs' makePAMService enabledServices;
2313
2314
systemd =
2315
- lib.optionalAttrs
2316
- (lib.any (service: service.updateWtmp) (lib.attrValues config.security.pam.services))
+ lib.mkIf (lib.any (service: service.updateWtmp) (lib.attrValues config.security.pam.services))
2317
{
2318
tmpfiles.packages = [ pkgs.util-linux.lastlog ]; # /lib/tmpfiles.d/lastlog2-tmpfiles.conf
2319
services.lastlog2-import = {
0 commit comments