services: gitolite-rc-file-compiler: Set mode of the generated file.

Copied over from the official configuration file, this sets a correct major
mode when you visit the generated file.

* gnu/services/version-control.scm (gitolite-rc-file-compiler): Add local
variables.

Change-Id: I8a9d794a1e3c7049ae606165cf939d81b5dbdf6e
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Tomas Volf 2025-04-01 00:10:11 +02:00 committed by Maxim Cournoyer
parent 0110eeee0a
commit 70a91c25b8
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -311,7 +311,11 @@ access to exported repositories under @file{/srv/git}."
,(if unsafe-pattern
(string-append "$UNSAFE_PATT = qr(" unsafe-pattern ");")
"")
"1;\n"))))
"1;\n"
"# Local variables:\n"
"# mode: perl\n"
"# End:\n"
"# vim: set syn=perl:\n"))))
(define-record-type* <gitolite-configuration>
gitolite-configuration make-gitolite-configuration