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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user