media1: override ProtectHome for promtail to read kodi logs

The NixOS promtail module sets ProtectHome=true which blocks access
to /home entirely. Override to read-only so promtail can tail
/home/kodi/.kodi/temp/kodi.log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 20:20:07 +01:00
parent 8abe7b1d07
commit a4426c50b9

View File

@@ -102,6 +102,7 @@ in
# Allow promtail to read kodi logs # Allow promtail to read kodi logs
users.users.promtail.extraGroups = [ "kodi" ]; users.users.promtail.extraGroups = [ "kodi" ];
systemd.services.promtail.serviceConfig.ProtectHome = lib.mkForce "read-only";
# Packages available on the system # Packages available on the system
environment.systemPackages = [ environment.systemPackages = [