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 = {
|
users.users.kodi = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/kodi";
|
home = "/home/kodi";
|
||||||
|
homeMode = "750";
|
||||||
group = "kodi";
|
group = "kodi";
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"video"
|
"video"
|
||||||
@@ -99,6 +100,9 @@ in
|
|||||||
};
|
};
|
||||||
users.groups.kodi = { };
|
users.groups.kodi = { };
|
||||||
|
|
||||||
|
# Allow promtail to read kodi logs
|
||||||
|
users.users.promtail.extraGroups = [ "kodi" ];
|
||||||
|
|
||||||
# Packages available on the system
|
# Packages available on the system
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
kodiPkg
|
kodiPkg
|
||||||
|
|||||||
Reference in New Issue
Block a user