From 9eb24c72ff4bf3e8c1b9ba1c3b5dd0f1b59c479d Mon Sep 17 00:00:00 2001 From: Matej Cotman Date: Sun, 28 Dec 2014 07:33:59 +0100 Subject: [PATCH] systemd: fix permissions on /var/log/journal --- nixos/modules/system/boot/systemd.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 05f8c8009bf..be62655720f 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -1032,6 +1032,11 @@ in '' # This file is created automatically and should not be modified. # Please change the option ‘systemd.tmpfiles.rules’ instead. + + z /var/log/journal 2755 root systemd-journal - - + z /var/log/journal/%m 2755 root systemd-journal - - + z /var/log/journal/%m/* 0640 root systemd-journal - - + ${concatStringsSep "\n" cfg.tmpfiles.rules} '';