media1: fix promtail permissions for kodi log scraping

Add promtail to the kodi group and set kodi home to 750 so promtail
can read ~/.kodi/temp/kodi.log.

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

View File

@@ -90,6 +90,7 @@ in
users.users.kodi = {
isNormalUser = true;
home = "/home/kodi";
homeMode = "750";
group = "kodi";
extraGroups = [
"video"
@@ -99,6 +100,9 @@ in
};
users.groups.kodi = { };
# Allow promtail to read kodi logs
users.users.promtail.extraGroups = [ "kodi" ];
# Packages available on the system
environment.systemPackages = [
kodiPkg