From f0db802f7281a1cae6c990d621994bbd586bb4df Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Wed, 18 Nov 2026 06:45:41 -0500 Subject: [PATCH] fix(tmpfiles): grant authelia uid 1000 write on emails.txt - Replace the z 0604 rule (other-read only) with an a+ ACL rule - Grant uid 1000 rw with an explicit m::rw mask; no world-writable mode - The filesystem notifier opens /config/emails.txt for append at startup, so read-only access left authelia in a fatal restart loop --- nixos/modules/homeserver.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/homeserver.nix b/nixos/modules/homeserver.nix index 0020787..a619586 100644 --- a/nixos/modules/homeserver.nix +++ b/nixos/modules/homeserver.nix @@ -259,6 +259,7 @@ "d ${config.homelab.coreDir}/config/stalwart/data 0777 ${config.homelab.operatorUser} users -" "d ${config.homelab.coreDir}/config/stalwart/etc 0777 ${config.homelab.operatorUser} users -" "d ${config.homelab.sitesDir} 0755 ${config.homelab.operatorUser} users -" + "a+ ${config.homelab.coreDir}/config/authelia/emails.txt - - - - u:1000:rw,m::rw" "d /home/${config.homelab.operatorUser}/.local/state/homelab/gitops 0755 ${config.homelab.operatorUser} users -" "d /home/${config.homelab.operatorUser}/.local/state/homelab/docker 0755 ${config.homelab.operatorUser} users -" "d /home/${config.homelab.operatorUser}/var/lib/homelab 0755 ${config.homelab.operatorUser} users -"