nixos/systemd: set r-x group permissions on /var/log/journal

This allows services such as systemd-journal-gateway to access the
systemd journal.

Closes #22288
This commit is contained in:
Antoine Eiche 2017-02-06 20:47:25 +01:00 committed by Nikolay Amiantov
parent d2465227d5
commit 9d30099b7f

View File

@ -753,7 +753,8 @@ in
# Keep a persistent journal. Note that systemd-tmpfiles will
# set proper ownership/permissions.
mkdir -m 0700 -p /var/log/journal
# FIXME: revert to 0700 with systemd v233.
mkdir -m 0750 -p /var/log/journal
'';
users.extraUsers.systemd-network.uid = config.ids.uids.systemd-network;