Merge pull request #146937 from amarshall/pam-apparmor-fix

nixos/pam: Fix apparmor syntax error
This commit is contained in:
pennae 2022-01-12 06:31:35 +00:00 committed by GitHub
commit b458e5133f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1072,8 +1072,8 @@ in
security.apparmor.includes."abstractions/pam" = let
isEnabled = test: fold or false (map test (attrValues config.security.pam.services));
in
lib.concatMapStringsSep "\n"
(name: "r ${config.environment.etc."pam.d/${name}".source},")
lib.concatMapStrings
(name: "r ${config.environment.etc."pam.d/${name}".source},\n")
(attrNames config.security.pam.services) +
''
mr ${getLib pkgs.pam}/lib/security/pam_filter/*,