services: pam-limits: fix limits.conf location

* gnu/services/base.scm: fix limits.conf location

This fixes #49771

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
muradm 2021-08-01 06:14:00 +03:00 committed by Julien Lepiller
parent ae16fa14d3
commit 29883f1130
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -1383,14 +1383,8 @@ (define pam-limits-service-type
(let ((security-limits
;; Create /etc/security containing the provided "limits.conf" file.
(lambda (limits-file)
`(("security"
,(computed-file
"security"
#~(begin
(mkdir #$output)
(stat #$limits-file)
(symlink #$limits-file
(string-append #$output "/limits.conf"))))))))
`(("security/limits.conf"
,limits-file))))
(pam-extension
(lambda (pam)
(let ((pam-limits (pam-entry